setup-kit.iss added
This commit is contained in:
parent
5e75695391
commit
637a14637c
|
@ -291,6 +291,8 @@ room2 = room {
|
|||
</code>
|
||||
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.
|
||||
|
|
|
@ -288,6 +288,8 @@ room2 = room {
|
|||
</code>
|
||||
Как видим, обработчики могут возвращать два значения: строку и статус. В нашем примере функция exit вернет false, если игрок попытается уйти из зала в main комнату. false означает, что переход не будет выполнен. Такая же логика работает и для enter. Кроме того, она работает и для обработчика tak.
|
||||
|
||||
Следует отметить, что при вызове обработчика enter текущая сцена может быть еще не изменена!!! Начиная с версии 1.2.0 добавлены обработчики left и entered, которые вызываются после того, как переход произошел. Эти обработчики рекомендованы к использованию всегда, когда нет необходимости запрещать переход.
|
||||
|
||||
===== 8. Действие объектов друг на друга =====
|
||||
|
||||
Игрок может действовать объектом инвентаря на другие объекты. При этом вызывается обработчик use у объекта которым действуют и used -- на которого действуют.
|
||||
|
|
61
setup-kit.iss
Normal file
61
setup-kit.iss
Normal file
|
@ -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
|
Loading…
Reference in a new issue