From 637a14637c0734218d5a096838a880ec3dc39d2b Mon Sep 17 00:00:00 2001 From: "p.kosyh" Date: Mon, 14 Jun 2010 17:17:23 +0000 Subject: [PATCH] setup-kit.iss added --- doc/writing_games-en.txt | 2 ++ doc/writing_games.txt | 2 ++ setup-kit.iss | 61 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 setup-kit.iss diff --git a/doc/writing_games-en.txt b/doc/writing_games-en.txt index c59c72b..ccd3042 100644 --- a/doc/writing_games-en.txt +++ b/doc/writing_games-en.txt @@ -291,6 +291,8 @@ room2 = room { As we see, the handlers can return two values: the string and the status. In our example the “exit” function returns “false” if the player tries to go to the “main” room from the hall. “false” means that the player will not pass. Same logic works for “enter” and “tak”. +Keep in mind that the current scene may not be changed by the moment of an enter action handler invocation. Since the version 1.2.0 available two new action handlers: 'left' and 'entered'. They are invoked immediately after the transition and recommended to use in case when transition prohibition is not required. + ===== 8. Using an object on an object ===== The player may use an inventory object on other objects. In this case “use” handler is invoked for the object in the inventory and “used” for the other one. diff --git a/doc/writing_games.txt b/doc/writing_games.txt index d2f83a5..9a36339 100644 --- a/doc/writing_games.txt +++ b/doc/writing_games.txt @@ -288,6 +288,8 @@ room2 = room { Как видим, обработчики могут возвращать два значения: строку и статус. В нашем примере функция exit вернет false, если игрок попытается уйти из зала в main комнату. false означает, что переход не будет выполнен. Такая же логика работает и для enter. Кроме того, она работает и для обработчика tak. +Следует отметить, что при вызове обработчика enter текущая сцена может быть еще не изменена!!! Начиная с версии 1.2.0 добавлены обработчики left и entered, которые вызываются после того, как переход произошел. Эти обработчики рекомендованы к использованию всегда, когда нет необходимости запрещать переход. + ===== 8. Действие объектов друг на друга ===== Игрок может действовать объектом инвентаря на другие объекты. При этом вызывается обработчик use у объекта которым действуют и used -- на которого действуют. diff --git a/setup-kit.iss b/setup-kit.iss new file mode 100644 index 0000000..eb74a07 --- /dev/null +++ b/setup-kit.iss @@ -0,0 +1,61 @@ +[Setup] +AppName=INSTEAD-KIT +AppVerName=INSTEAD 1.2.0 +DefaultDirName={pf}\Pinebrush games\INSTEAD +DefaultGroupName=Pinebrush games +UninstallDisplayIcon={app}\sdl-instead.exe +OutputDir=. +OutputBaseFilename=instead-kit-1.2.0 +AllowNoIcons=true + +[Languages] +Name: en; MessagesFile: compiler:Default.isl +Name: ru; MessagesFile: compiler:Languages\Russian.isl + +[Files] +Source: sdl-instead.exe; DestDir: {app} +Source: instead-launcher.exe; DestDir: {app} +Source: qt_ru.qm; DestDir: {app} +Source: appdata\*; DestDir: {app}\appdata + +Source: Microsoft.VC80.CRT\*; DestDir: {app}\Microsoft.VC80.CRT +Source: games\tutorial2\*; DestDir: {app}\games\tutorial2 +Source: games\tutorial2-en\*; DestDir: {app}\games\tutorial2-en +Source: games\tutorial2-es\*; DestDir: {app}\games\tutorial2-es +Source: icon\*; DestDir: {app}\icon +Source: doc\*; DestDir: {app}\doc +Source: stead\*; DestDir: {app}\stead +Source: languages\*; DestDir: {app}\languages +Source: themes\default\*; DestDir: {app}\themes\default +Source: themes\book\*; DestDir: {app}\themes\book +Source: themes\original\*; DestDir: {app}\themes\original +Source: themes\fantasy\*; DestDir: {app}\themes\fantasy +Source: themes\arctic\*; DestDir: {app}\themes\arctic +Source: themes\bluesteel\*; DestDir: {app}\themes\bluesteel +Source: *.dll; DestDir: {app} + +[CustomMessages] +CreateDesktopIcon=Create a &desktop icons +LaunchGame=Launch &game +UninstallMsg=Uninstall INSTEAD-KIT +ru.CreateDesktopIcon= & +ru.LaunchGame= & +ru.UninstallMsg= INSTEAD +ru.RmSettingsMsg= ? + +[Tasks] +Name: desktopicon; Description: {cm:CreateDesktopIcon} + +[Run] +Filename: {app}\instead-launcher.exe; Description: {cm:LaunchGame}; WorkingDir: {app}; Flags: postinstall + +[Icons] +Name: {commondesktop}\INSTEAD; Filename: {app}\sdl-instead.exe; WorkingDir: {app}; Tasks: desktopicon +Name: {commondesktop}\INSTEAD-Launcher; Filename: {app}\instead-launcher.exe; WorkingDir: {app}; Tasks: desktopicon +Name: {group}\INSTEAD; Filename: {app}\sdl-instead.exe; WorkingDir: {app} +Name: {group}\INSTEAD-Launcher; Filename: {app}\instead-launcher.exe; WorkingDir: {app} +Name: {group}\{cm:UninstallMsg}; Filename: {uninstallexe} + +[UninstallDelete] +Name: {app}; Type: dirifempty +Name: {pf}\Pinebrush games; Type: dirifempty