From: Jaka K. <lyn...@us...> - 2012-09-27 16:31:52
|
gemrb: Infinity Engine emulator The branch master has been updated via 4094cc9f7913b4a06e2d13e543d8dd2056f1eb16 (commit) Summary of changes: gemrb/GUIScripts/iwd2/AutoPause.py | 206 ------------------------------------ gemrb/GUIScripts/iwd2/CharSound.py | 139 ------------------------ gemrb/GUIScripts/iwd2/Feedback.py | 184 -------------------------------- 3 files changed, 0 insertions(+), 529 deletions(-) delete mode 100644 gemrb/GUIScripts/iwd2/AutoPause.py delete mode 100644 gemrb/GUIScripts/iwd2/CharSound.py delete mode 100644 gemrb/GUIScripts/iwd2/Feedback.py from 34303874d71092b3bbe2c04f6a8d1aaeaca3e07e (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://gemrb.git.sourceforge.net/git/gitweb.cgi?p=gemrb/gemrb;a=commitdiff;h=4094cc9f7913b4a06e2d13e543d8dd2056f1eb16 commit 4094cc9f7913b4a06e2d13e543d8dd2056f1eb16 Author: Jaka Kranjc <lyn...@us...> Date: Thu Sep 27 18:26:24 2012 +0200 iwd2: removed some more dead/unreachable guiopt code diff --git a/gemrb/GUIScripts/iwd2/AutoPause.py b/gemrb/GUIScripts/iwd2/AutoPause.py deleted file mode 100644 index 853aad5..0000000 --- a/gemrb/GUIScripts/iwd2/AutoPause.py +++ /dev/null @@ -1,206 +0,0 @@ -# -*-python-*- -# GemRB - Infinity Engine Emulator -# Copyright (C) 2003 The GemRB Project -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# - -# autopause options using GUIOPT - -import GemRB -from GUIDefines import * - -def OnLoad (): - global AutoPauseWindow, TextAreaControl - - GemRB.LoadWindowPack ("GUIOPT", 800, 600) - - AutoPauseWindow = GemRB.LoadWindow (10) - AutoPauseWindow.SetFrame ( ) - - TextAreaControl = AutoPauseWindow.GetControl (15) - - ChHitButton = AutoPauseWindow.GetControl (17) - ChHitButtonB = AutoPauseWindow.GetControl (1) - ChHitButtonB.SetSprites ("GBTNOPT4", 0, 0, 1, 2, 3) - - ChInjured = AutoPauseWindow.GetControl (18) - ChInjuredB = AutoPauseWindow.GetControl (2) - ChInjuredB.SetSprites ("GBTNOPT4", 0, 0, 1, 2, 3) - - ChDeath = AutoPauseWindow.GetControl (19) - ChDeathB = AutoPauseWindow.GetControl (3) - ChDeathB.SetSprites ("GBTNOPT4", 0, 0, 1, 2, 3) - - ChAttacked = AutoPauseWindow.GetControl (20) - ChAttackedB = AutoPauseWindow.GetControl (4) - ChAttackedB.SetSprites ("GBTNOPT4", 0, 0, 1, 2, 3) - - WeaponUnusable = AutoPauseWindow.GetControl (21) - WeaponUnusableB = AutoPauseWindow.GetControl (5) - WeaponUnusableB.SetSprites ("GBTNOPT4", 0, 0, 1, 2, 3) - - TargetDestroyed = AutoPauseWindow.GetControl (22) - TargetDestroyedB = AutoPauseWindow.GetControl (13) - TargetDestroyedB.SetSprites ("GBTNOPT4", 0, 0, 1, 2, 3) - - EndOfRound = AutoPauseWindow.GetControl (24) - EndOfRoundB = AutoPauseWindow.GetControl (25) - EndOfRoundB.SetSprites ("GBTNOPT4", 0, 0, 1, 2, 3) - - EnemySighted = AutoPauseWindow.GetControl (31) - EnemySightedB = AutoPauseWindow.GetControl (30) - EnemySightedB.SetSprites ("GBTNOPT4", 0, 0, 1, 2, 3) - - SpellCast = AutoPauseWindow.GetControl (37) - SpellCastB = AutoPauseWindow.GetControl (36) - SpellCastB.SetSprites ("GBTNOPT4", 0, 0, 1, 2, 3) - - TrapFound = AutoPauseWindow.GetControl (28) - TrapFoundB = AutoPauseWindow.GetControl (26) - TrapFoundB.SetSprites ("GBTNOPT4", 0, 0, 1, 2, 3) - - AutopauseCenter = AutoPauseWindow.GetControl (34) - AutopauseCenterB = AutoPauseWindow.GetControl (33) - AutopauseCenterB.SetSprites ("GBTNOPT4", 0, 0, 1, 2, 3) - - OkButton = AutoPauseWindow.GetControl (11) - CancelButton = AutoPauseWindow.GetControl (14) - - TextAreaControl.SetText (18044) - OkButton.SetText (11973) - OkButton.SetFlags (IE_GUI_BUTTON_DEFAULT, OP_OR) - - CancelButton.SetText (13727) - CancelButton.SetFlags (IE_GUI_BUTTON_CANCEL, OP_OR) - - ChHitButton.SetEvent (IE_GUI_BUTTON_ON_PRESS, ChHitButtonPress) - ChHitButtonB.SetFlags (IE_GUI_BUTTON_CHECKBOX, OP_OR) - ChHitButtonB.SetEvent (IE_GUI_BUTTON_ON_PRESS, ChHitButtonPress) - - ChInjured.SetEvent (IE_GUI_BUTTON_ON_PRESS, ChInjuredPress) - ChInjuredB.SetFlags (IE_GUI_BUTTON_CHECKBOX, OP_OR) - ChInjuredB.SetEvent (IE_GUI_BUTTON_ON_PRESS, ChInjuredPress) - - ChDeath.SetEvent (IE_GUI_BUTTON_ON_PRESS, ChDeathPress) - ChDeathB.SetFlags (IE_GUI_BUTTON_CHECKBOX, OP_OR) - ChDeathB.SetEvent (IE_GUI_BUTTON_ON_PRESS, ChDeathPress) - - ChAttacked.SetEvent (IE_GUI_BUTTON_ON_PRESS, ChAttackedPress) - ChAttackedB.SetFlags (IE_GUI_BUTTON_CHECKBOX, OP_OR) - ChAttackedB.SetEvent (IE_GUI_BUTTON_ON_PRESS, ChAttackedPress) - - WeaponUnusable.SetEvent (IE_GUI_BUTTON_ON_PRESS, WeaponUnusablePress) - WeaponUnusableB.SetFlags (IE_GUI_BUTTON_CHECKBOX, OP_OR) - WeaponUnusableB.SetEvent (IE_GUI_BUTTON_ON_PRESS, WeaponUnusablePress) - - TargetDestroyed.SetEvent (IE_GUI_BUTTON_ON_PRESS, TargetDestroyedPress) - TargetDestroyedB.SetFlags (IE_GUI_BUTTON_CHECKBOX, OP_OR) - TargetDestroyedB.SetEvent (IE_GUI_BUTTON_ON_PRESS, TargetDestroyedPress) - - EndOfRound.SetEvent (IE_GUI_BUTTON_ON_PRESS, EndOfRoundPress) - EndOfRoundB.SetFlags (IE_GUI_BUTTON_CHECKBOX, OP_OR) - EndOfRoundB.SetEvent (IE_GUI_BUTTON_ON_PRESS, EndOfRoundPress) - - EnemySighted.SetEvent (IE_GUI_BUTTON_ON_PRESS, EnemySightedPress) - EnemySightedB.SetFlags (IE_GUI_BUTTON_CHECKBOX, OP_OR) - EnemySightedB.SetEvent (IE_GUI_BUTTON_ON_PRESS, EnemySightedPress) - - SpellCast.SetEvent (IE_GUI_BUTTON_ON_PRESS, SpellCastPress) - SpellCastB.SetFlags (IE_GUI_BUTTON_CHECKBOX, OP_OR) - SpellCastB.SetEvent (IE_GUI_BUTTON_ON_PRESS, SpellCastPress) - - TrapFound.SetEvent (IE_GUI_BUTTON_ON_PRESS, TrapFoundPress) - TrapFoundB.SetFlags (IE_GUI_BUTTON_CHECKBOX, OP_OR) - TrapFoundB.SetEvent (IE_GUI_BUTTON_ON_PRESS, TrapFoundPress) - - AutopauseCenter.SetEvent (IE_GUI_BUTTON_ON_PRESS, AutopauseCenterPress) - AutopauseCenterB.SetFlags (IE_GUI_BUTTON_CHECKBOX, OP_OR) - AutopauseCenterB.SetEvent (IE_GUI_BUTTON_ON_PRESS, AutopauseCenterPress) - - OkButton.SetEvent (IE_GUI_BUTTON_ON_PRESS, OkPress) - CancelButton.SetEvent (IE_GUI_BUTTON_ON_PRESS, CancelPress) - - AutopauseCenterB.SetVarAssoc ("Auto Pause Center",1) - - ChHitButtonB.SetVarAssoc ("Auto Pause State",1) - ChInjuredB.SetVarAssoc ("Auto Pause State",2) - ChDeathB.SetVarAssoc ("Auto Pause State",4) - ChAttackedB.SetVarAssoc ("Auto Pause State",8) - WeaponUnusableB.SetVarAssoc ("Auto Pause State",16) - TargetDestroyedB.SetVarAssoc ("Auto Pause State",32) - EndOfRoundB.SetVarAssoc ("Auto Pause State",64) - EnemySightedB.SetVarAssoc ("Auto Pause State",128) - SpellCastB.SetVarAssoc ("Auto Pause State",256) - TrapFoundB.SetVarAssoc ("Auto Pause State",512) - - AutoPauseWindow.SetVisible (WINDOW_VISIBLE) - return - -def ChHitButtonPress (): - TextAreaControl.SetText (18032) - return - -def ChInjuredPress (): - TextAreaControl.SetText (18033) - return - -def ChDeathPress (): - TextAreaControl.SetText (18034) - return - -def ChAttackedPress (): - TextAreaControl.SetText (18035) - return - -def WeaponUnusablePress (): - TextAreaControl.SetText (18036) - return - -def TargetDestroyedPress (): - TextAreaControl.SetText (18037) - return - -def EndOfRoundPress (): - TextAreaControl.SetText (10640) - return - -def EnemySightedPress (): - TextAreaControl.SetText (23514) - return - -def SpellCastPress (): - TextAreaControl.SetText (26311) - return - -def TrapFoundPress (): - TextAreaControl.SetText (18560) #iwd2 has it here - return - -def AutopauseCenterPress (): - TextAreaControl.SetText (24888) #iwd2 has it here - return - -def OkPress (): - if AutoPauseWindow: - AutoPauseWindow.Unload () - GemRB.SetNextScript ("GamePlay") - return - -def CancelPress (): - if AutoPauseWindow: - AutoPauseWindow.Unload () - GemRB.SetNextScript ("GamePlay") - return diff --git a/gemrb/GUIScripts/iwd2/CharSound.py b/gemrb/GUIScripts/iwd2/CharSound.py deleted file mode 100644 index 3b14e9a..0000000 --- a/gemrb/GUIScripts/iwd2/CharSound.py +++ /dev/null @@ -1,139 +0,0 @@ -# -*-python-*- -# GemRB - Infinity Engine Emulator -# Copyright (C) 2003 The GemRB Project -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# - -#Character Sound Options Menu using GUIOPT - -import GemRB -from GUIDefines import * - -CSoundWindow = 0 -TextAreaControl = 0 - -def OnLoad(): - global CSoundWindow, TextAreaControl - - GemRB.LoadWindowPack("GUIOPT", 800, 600) - CSoundWindow = GemRB.LoadWindow(12) - CSoundWindow.SetFrame( ) - TextAreaControl = CSoundWindow.GetControl(16) - SubtitlesButton = CSoundWindow.GetControl(20) - AttackSoundButton = CSoundWindow.GetControl(18) - MovementSoundButton = CSoundWindow.GetControl(19) - CommandSoundButton = CSoundWindow.GetControl(21) - SelectionSoundButton = CSoundWindow.GetControl(57) - SubtitlesButtonB = CSoundWindow.GetControl(5) - AttackSoundButtonB = CSoundWindow.GetControl(6) - MovementSoundButtonB = CSoundWindow.GetControl(7) - CSAlwaysButtonB = CSoundWindow.GetControl(8) - CSSeldomButtonB = CSoundWindow.GetControl(9) - CSNeverButtonB = CSoundWindow.GetControl(10) - SSAlwaysButtonB = CSoundWindow.GetControl(58) - SSSeldomButtonB = CSoundWindow.GetControl(59) - SSNeverButtonB = CSoundWindow.GetControl(60) - OkButton = CSoundWindow.GetControl(24) - CancelButton = CSoundWindow.GetControl(25) - TextAreaControl.SetText(18041) - OkButton.SetText(11973) - OkButton.SetFlags (IE_GUI_BUTTON_DEFAULT, OP_OR) - - CancelButton.SetText(13727) - CancelButton.SetFlags (IE_GUI_BUTTON_CANCEL, OP_OR) - - SubtitlesButton.SetEvent(IE_GUI_BUTTON_ON_PRESS, SubtitlesPress) - SubtitlesButtonB.SetEvent(IE_GUI_BUTTON_ON_PRESS, SubtitlesPress) - SubtitlesButtonB.SetFlags(IE_GUI_BUTTON_CHECKBOX, OP_OR) - SubtitlesButtonB.SetVarAssoc("Subtitles", 1) - SubtitlesButtonB.SetSprites("GBTNOPT4", 0, 0, 1, 2, 3) - - AttackSoundButton.SetEvent(IE_GUI_BUTTON_ON_PRESS, AttackSoundPress) - AttackSoundButtonB.SetEvent(IE_GUI_BUTTON_ON_PRESS, AttackSoundPress) - AttackSoundButtonB.SetFlags(IE_GUI_BUTTON_CHECKBOX, OP_OR) - AttackSoundButtonB.SetVarAssoc("Attack Sound", 1) #can't find the right variable name, this is a dummy name - AttackSoundButtonB.SetSprites("GBTNOPT4", 0, 0, 1, 2, 3) - - MovementSoundButton.SetEvent(IE_GUI_BUTTON_ON_PRESS, MovementSoundPress) - MovementSoundButtonB.SetEvent(IE_GUI_BUTTON_ON_PRESS, MovementSoundPress) - MovementSoundButtonB.SetFlags(IE_GUI_BUTTON_CHECKBOX, OP_OR) - MovementSoundButtonB.SetVarAssoc("Movement Sound", 1) #can't find the right variable name, this is a dummy name - MovementSoundButtonB.SetSprites("GBTNOPT4", 0, 0, 1, 2, 3) - - CommandSoundButton.SetEvent(IE_GUI_BUTTON_ON_PRESS, CommandSoundPress) - CSAlwaysButtonB.SetEvent(IE_GUI_BUTTON_ON_PRESS, CommandSoundPress) - CSAlwaysButtonB.SetFlags(IE_GUI_BUTTON_RADIOBUTTON, OP_OR) - CSAlwaysButtonB.SetVarAssoc("Command Sounds Frequency", 3) - CSAlwaysButtonB.SetSprites("GBTNOPT4", 0, 0, 1, 2, 3) - CSSeldomButtonB.SetEvent(IE_GUI_BUTTON_ON_PRESS, CommandSoundPress) - CSSeldomButtonB.SetFlags(IE_GUI_BUTTON_RADIOBUTTON, OP_OR) - CSSeldomButtonB.SetVarAssoc("Command Sounds Frequency", 2) - CSSeldomButtonB.SetSprites("GBTNOPT4", 0, 0, 1, 2, 3) - CSNeverButtonB.SetEvent(IE_GUI_BUTTON_ON_PRESS, CommandSoundPress) - CSNeverButtonB.SetFlags(IE_GUI_BUTTON_RADIOBUTTON, OP_OR) - CSNeverButtonB.SetVarAssoc("Command Sounds Frequency", 1) - CSNeverButtonB.SetSprites("GBTNOPT4", 0, 0, 1, 2, 3) - - SelectionSoundButton.SetEvent(IE_GUI_BUTTON_ON_PRESS, SelectionSoundPress) - SSAlwaysButtonB.SetEvent(IE_GUI_BUTTON_ON_PRESS, SelectionSoundPress) - SSAlwaysButtonB.SetFlags(IE_GUI_BUTTON_RADIOBUTTON, OP_OR) - SSAlwaysButtonB.SetVarAssoc("Selection Sounds Frequency", 3) - SSAlwaysButtonB.SetSprites("GBTNOPT4", 0, 0, 1, 2, 3) - SSSeldomButtonB.SetEvent(IE_GUI_BUTTON_ON_PRESS, SelectionSoundPress) - SSSeldomButtonB.SetFlags(IE_GUI_BUTTON_RADIOBUTTON, OP_OR) - SSSeldomButtonB.SetVarAssoc("Selection Sounds Frequency", 2) - SSSeldomButtonB.SetSprites("GBTNOPT4", 0, 0, 1, 2, 3) - SSNeverButtonB.SetEvent(IE_GUI_BUTTON_ON_PRESS, SelectionSoundPress) - SSNeverButtonB.SetFlags(IE_GUI_BUTTON_RADIOBUTTON, OP_OR) - SSNeverButtonB.SetVarAssoc("Selection Sounds Frequency", 1) - SSNeverButtonB.SetSprites("GBTNOPT4", 0, 0, 1, 2, 3) - - OkButton.SetEvent(IE_GUI_BUTTON_ON_PRESS, OkPress) - CancelButton.SetEvent(IE_GUI_BUTTON_ON_PRESS, CancelPress) - CSoundWindow.SetVisible(WINDOW_VISIBLE) - return - -def SubtitlesPress(): - TextAreaControl.SetText(18015) - return - -def AttackSoundPress(): - TextAreaControl.SetText(18013) - return - -def MovementSoundPress(): - TextAreaControl.SetText(18014) - return - -def CommandSoundPress(): - TextAreaControl.SetText(18016) - return - -def SelectionSoundPress(): - TextAreaControl.SetText(11352) - return - -def OkPress(): - if CSoundWindow: - CSoundWindow.Unload() - GemRB.SetNextScript("Options") - return - -def CancelPress(): - if CSoundWindow: - CSoundWindow.Unload() - GemRB.SetNextScript("Options") - return diff --git a/gemrb/GUIScripts/iwd2/Feedback.py b/gemrb/GUIScripts/iwd2/Feedback.py deleted file mode 100644 index 0985fe7..0000000 --- a/gemrb/GUIScripts/iwd2/Feedback.py +++ /dev/null @@ -1,184 +0,0 @@ -# GemRB - Infinity Engine Emulator -# Copyright (C) 2003 The GemRB Project -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# -#feedback -import GemRB -from GUIDefines import * - -FeedbackWindow = 0 -TextAreaControl = 0 - -def OnLoad(): - global FeedbackWindow, TextAreaControl - - GemRB.LoadWindowPack("GUIOPT", 800, 600) - FeedbackWindow = GemRB.LoadWindow(9) - FeedbackWindow.SetFrame( ) - - MarkerSlider = FeedbackWindow.GetControl(30) - MarkerSliderS = FeedbackWindow.GetControl(8) - - LocatorSlider = FeedbackWindow.GetControl(31) - LocatorSliderS = FeedbackWindow.GetControl(9) - - THac0Rolls = FeedbackWindow.GetControl(32) - THac0RollsB = FeedbackWindow.GetControl(10) - THac0RollsB.SetSprites("GBTNOPT4", 0, 0, 1, 2, 3) - - CombatInfo = FeedbackWindow.GetControl(33) - CombatInfoB = FeedbackWindow.GetControl(11) - CombatInfoB.SetSprites("GBTNOPT4", 0, 0, 1, 2, 3) - - Actions = FeedbackWindow.GetControl(34) - ActionsB = FeedbackWindow.GetControl(12) - ActionsB.SetSprites("GBTNOPT4", 0, 0, 1, 2, 3) - - StateChanges = FeedbackWindow.GetControl(35) - StateChangesB = FeedbackWindow.GetControl(13) - StateChangesB.SetSprites("GBTNOPT4", 0, 0, 1, 2, 3) - - SelectionText = FeedbackWindow.GetControl(36) - SelectionTextB = FeedbackWindow.GetControl(14) - SelectionTextB.SetSprites("GBTNOPT4", 0, 0, 1, 2, 3) - - Miscellaneous = FeedbackWindow.GetControl(37) - MiscellaneousB = FeedbackWindow.GetControl(15) - MiscellaneousB.SetSprites("GBTNOPT4", 0, 0, 1, 2, 3) - - OkButton = FeedbackWindow.GetControl(26) - CancelButton = FeedbackWindow.GetControl(27) - TextAreaControl = FeedbackWindow.GetControl(28) - - TextAreaControl.SetText(18043) - OkButton.SetText(11973) - OkButton.SetFlags (IE_GUI_BUTTON_DEFAULT, OP_OR) - - CancelButton.SetText(13727) - CancelButton.SetFlags (IE_GUI_BUTTON_CANCEL, OP_OR) - - MarkerSlider.SetEvent(IE_GUI_BUTTON_ON_PRESS, MarkerSliderPress) - MarkerSliderS.SetEvent(IE_GUI_SLIDER_ON_CHANGE, MarkerSliderPress) - MarkerSliderS.SetVarAssoc("GUI Feedback Level",1) - - LocatorSlider.SetEvent(IE_GUI_BUTTON_ON_PRESS, LocatorSliderPress) - LocatorSliderS.SetEvent(IE_GUI_SLIDER_ON_CHANGE, LocatorSliderPress) - LocatorSliderS.SetVarAssoc("Locator Feedback Level",1) - - THac0Rolls.SetEvent(IE_GUI_BUTTON_ON_PRESS, THac0RollsPress) - THac0RollsB.SetEvent(IE_GUI_BUTTON_ON_PRESS, THac0RollsBPress) - THac0RollsB.SetFlags(IE_GUI_BUTTON_CHECKBOX, OP_OR) - THac0RollsB.SetVarAssoc("Rolls",1) - - CombatInfo.SetEvent(IE_GUI_BUTTON_ON_PRESS, CombatInfoPress) - CombatInfoB.SetEvent(IE_GUI_BUTTON_ON_PRESS, CombatInfoBPress) - CombatInfoB.SetFlags(IE_GUI_BUTTON_CHECKBOX, OP_OR) - CombatInfoB.SetVarAssoc("Combat Info",1) - - Actions.SetEvent(IE_GUI_BUTTON_ON_PRESS, ActionsPress) - ActionsB.SetEvent(IE_GUI_BUTTON_ON_PRESS, ActionsBPress) - ActionsB.SetFlags(IE_GUI_BUTTON_CHECKBOX, OP_OR) - ActionsB.SetVarAssoc("Actions",1) - - StateChanges.SetEvent(IE_GUI_BUTTON_ON_PRESS, StateChangesPress) - StateChangesB.SetEvent(IE_GUI_BUTTON_ON_PRESS, StateChangesBPress) - StateChangesB.SetFlags(IE_GUI_BUTTON_CHECKBOX, OP_OR) - StateChangesB.SetVarAssoc("State Changes",1) - - SelectionText.SetEvent(IE_GUI_BUTTON_ON_PRESS, SelectionTextPress) - SelectionTextB.SetEvent(IE_GUI_BUTTON_ON_PRESS, SelectionTextBPress) - SelectionTextB.SetFlags(IE_GUI_BUTTON_CHECKBOX, OP_OR) - SelectionTextB.SetVarAssoc("Selection Text",1) - - Miscellaneous.SetEvent(IE_GUI_BUTTON_ON_PRESS, MiscellaneousPress) - MiscellaneousB.SetEvent(IE_GUI_BUTTON_ON_PRESS, MiscellaneousBPress) - MiscellaneousB.SetFlags(IE_GUI_BUTTON_CHECKBOX, OP_OR) - MiscellaneousB.SetVarAssoc("Miscellaneous Text",1) - - OkButton.SetEvent(IE_GUI_BUTTON_ON_PRESS, OkPress) - CancelButton.SetEvent(IE_GUI_BUTTON_ON_PRESS, CancelPress) - FeedbackWindow.SetVisible(WINDOW_VISIBLE) - return - -def MarkerSliderPress(): - TextAreaControl.SetText(18024) - return - -def LocatorSliderPress(): - TextAreaControl.SetText(18025) - return - -def THac0RollsPress(): - TextAreaControl.SetText(18026) - return - -def THac0RollsBPress(): - TextAreaControl.SetText(18026) - return - -def CombatInfoPress(): - TextAreaControl.SetText(18027) - return - -def CombatInfoBPress(): - TextAreaControl.SetText(18027) - return - -def ActionsPress(): - TextAreaControl.SetText(18028) - return - -def ActionsBPress(): - TextAreaControl.SetText(18028) - return - -def StateChangesPress(): - TextAreaControl.SetText(18029) - return - -def StateChangesBPress(): - TextAreaControl.SetText(18029) - return - -def SelectionTextPress(): - TextAreaControl.SetText(18030) - return - -def SelectionTextBPress(): - TextAreaControl.SetText(18030) - return - -def MiscellaneousPress(): - TextAreaControl.SetText(18031) - return - -def MiscellaneousBPress(): - TextAreaControl.SetText(18031) - return - -def OkPress(): - if FeedbackWindow: - FeedbackWindow.Unload() - GemRB.SetNextScript("GamePlay") - return - -def CancelPress(): - if FeedbackWindow: - FeedbackWindow.Unload() - GemRB.SetNextScript("GamePlay") - return - ----------------------------------------------------------------------- This is an automated email from the git hooks/post-receive script. -- gemrb: Infinity Engine emulator |