Director/Lingo,使应用程序在全屏和窗口之间切换?

发布于 2024-09-07 21:19:29 字数 532 浏览 8 评论 0原文

最近,一位客户联系我,要求更新我多年前维护/开发的他的项目。

它是使用 Macromedia Director(现在的 Adob​​e Director)和 Lingo 完成的。由于我已经很长时间没有使用这些技术开发任何东西了,所以我需要一些帮助。

大多数更改都很简单,但让我困惑的是使应用程序能够在全屏投影仪和窗口模式之间切换。

它的组织方式如下:

  • 我有一台短截投影仪,它重量轻,可确保快速启动。
  • 存根投影仪加载主电影。 ("@::Content:Main")
  • 此存根投影仪以全屏模式发布。

现在,我可以通过发布单独的可执行文件来创建一台带窗口的投影仪和一台全屏模式的投影仪。然而,客户想要的是能够在运行时切换它 - 这甚至可能吗?

我发现了一些可行的解决方法(将显示矩形和舞台矩形设置为桌面大小),但引入了许多兼容性问题。

有什么建议吗?解决方案?

我很想说,在运行时切换是不可能的,并建议他发布全屏或窗口版本。

I recently had a client contact me asking for an update to his project that I used to maintain/develop years ago.

It was done using Macromedia Director (now Adobe Director) and Lingo. Since I haven't developed anything using these technology in such a long time I need some assistance.

The majority of the changes are simple, but what has got me stumped is making the application be able to toggle between full-screen projector and windowed-mode.

This is how it is organised:

  • I have a stub projector, which is lightweight and ensures a quick start-time.
  • The stub projector loads the main movie. ("@::Content:Main")
  • This stub projector is published with in full-screen mode.

Now, I can create a projector that is windowed and one that is full-screen mode by publishing separate executables. However what the client wants is the ability to switch this at runtime - is this even possible?

I have found a few workarounds that kinda work (setting the display-rect and stage-rect to the desktop size) but introduce numerous compatibility issues.

Any advice? Solutions?

I am tempted to say that it isn't possible to switch at runtime and recommend that he publishes either a full-screen or a windowed version.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

且行且努力 2024-09-14 21:19:29

供将来参考:http://www.directorforum.com/showthread.php? p=38795#post38795

嗯,有不同的方法
定义“全屏”,但都可以
在运行时完成:

1) 投影机自动调整
计算机的显示分辨率为
符合电影的尺寸
隐藏任务栏/停靠栏。这是
一般来说,“全屏”是什么意思
现代用语。您可以查看
用于切换的各种 Xtras
动态分辨率。

2) 就董事而言,发布
投影仪“全屏”只是意味着
投影仪窗口没有
标题栏,占据整个尺寸
的显示,隐藏
任务栏/扩展坞,并且有电影
内容以屏幕为中心,由
纯色背景色。这是一个
完全的蹩脚实施
屏幕,因为它不制作电影
在屏幕上显示更大。这个可以
通过操作在运行时设置
纠正你提到的并使用
Xtra 隐藏任务栏。没有把握
你遇到了什么“兼容性问题”
进入。

3) 以图形方式拉伸影片
它的实际内容占据了
整个屏幕。最简单的方法
这是通过改变drawRect来实现的。但
这可能会导致图形扭曲
取决于拉伸的程度
发生,因为没有抗锯齿
用于平滑拉伸的像素。

For future reference: http://www.directorforum.com/showthread.php?p=38795#post38795

Well there are different ways to
define "full screen", but all can be
done at runtime:

1) The projector automatically adjusts
the computer's display resolution to
match the dimensions of the movie and
hides the taskbar/dock. This is
generally what "full screen" means in
modern parlance. You can check out
various Xtras for switching the
resolution on the fly.

2) In Director terms, publishing a
projector 'full screen' just means
that the projector window has no
titlebar, takes up the full dimensions
of the display, hides the
taskbar/dock, and has the movie
content centered on screen framed by a
solid background color. This is a
pretty lame implementation of full
screen since it doesn't make the movie
appear any bigger onscreen. This can
be set at runtime by manipulating the
rects that you mention and using an
Xtra to hide the taskbar. Not sure
what "compatibility issues" you ran
into.

3) Graphically stretch the movie so
that its actual content takes up the
entire screen. The easiest way to do
this is by altering the drawRect. But
this can result in distorted graphics
depending on how much stretching is
occurring, since no antialiasing is
used to smooth the stretched pixels.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文