def OpenVideoOptionsWindow (): """Open video options window""" global HelpTextArea Window = GemRB.LoadWindow (6, "GUIOPT") Window.AddAlias("SUB_WIN", 0) Window.SetFlags (WF_BORDERLESS, OP_OR) HelpTextArea = GUIOPTControls.OptHelpText ('VideoOptions', Window, 33, 18038) GUIOPTControls.OptDone (CloseVideoOptionsWindow, Window, 21) GUIOPTControls.OptCancel (CloseVideoOptionsWindow, Window, 32) GUIOPTControls.OptSlider (18038, 17203, HelpTextArea, Window, 3, 35, 17129, 'Brightness Correction', DisplayHelpBrightness, 4) GUIOPTControls.OptSlider (18038, 17204, HelpTextArea, Window, 22, 36, 17128, 'Gamma Correction', DisplayHelpContrast) GUIOPTControls.OptRadio (DisplayHelpBPP, Window, 5, 37, 'BitsPerPixel', 16) GUIOPTControls.OptRadio (DisplayHelpBPP, Window, 6, 37, 'BitsPerPixel', 24) GUIOPTControls.OptRadio (DisplayHelpBPP, Window, 7, 37, 'BitsPerPixel', 32) GUIOPTControls.OptCheckbox (18038, 18000, HelpTextArea, Window, 9, 38, 17131, 'Full Screen', DisplayHelpFullScreen) GUIOPTControls.OptCheckbox (18038, 20620, HelpTextArea, Window, 51, 50, 20617, 'Translucent Shadows') GUIOPTControls.OptCheckbox (18038, 18004, HelpTextArea, Window, 40, 44, 17134, 'SoftMirrorBlt') GUIOPTControls.OptCheckbox (18038, 18006, HelpTextArea, Window, 41, 46, 17136, 'SoftSrcKeyBlt') # software standard blit GUIOPTControls.OptCheckbox (18038, 18007, HelpTextArea, Window, 42, 48, 17135, 'SoftBltFast') # software transparent blit Window.ShowModal (MODAL_SHADOW_GRAY) return
def OpenCharacterSoundsWindow (): """Open character sounds window""" global SubSubOptionsWindow, HelpTextArea2 Window = SubSubOptionsWindow CloseSubSubOptionsWindow () Window = GemRB.LoadWindow (12) HelpTextArea2 = GUIOPTControls.OptHelpText ('CharacterSounds', Window, 16, 18041) GUIOPTControls.OptDone (CloseCharacterSoundsWindow, Window, 24) GUIOPTControls.OptCancel (CloseCharacterSoundsWindow, Window, 25) GUIOPTControls.OptCheckbox (18041, 18015, HelpTextArea2, Window, 5, 20, 17138, 'Subtitles') GUIOPTControls.OptCheckbox (18041, 18013, HelpTextArea2, Window, 6, 18, 17139, 'Attack Sound') GUIOPTControls.OptCheckbox (18041, 18014, HelpTextArea2, Window, 7, 19, 17140, 'Footsteps') GUIOPTControls.OptRadio (DisplayHelpCommandSounds, Window, 8, 21, 'Command Sounds Frequency', 2) GUIOPTControls.OptRadio (DisplayHelpCommandSounds, Window, 9, 21, 'Command Sounds Frequency', 1) GUIOPTControls.OptRadio (DisplayHelpCommandSounds, Window, 10, 21, 'Command Sounds Frequency', 0) GUIOPTControls.OptRadio (DisplayHelpSelectionSounds, Window, 58, 57, 'Selection Sounds Frequency', 2) GUIOPTControls.OptRadio (DisplayHelpSelectionSounds, Window, 59, 57, 'Selection Sounds Frequency', 1) GUIOPTControls.OptRadio (DisplayHelpSelectionSounds, Window, 60, 57, 'Selection Sounds Frequency', 0) Window.ShowModal (MODAL_SHADOW_GRAY) SubSubOptionsWindow = Window
def OpenCharacterSoundsWindow(): """Open character sounds window""" global HelpTextArea2 #GemRB.GetView("SUB_WIN", 1).Close() Window = GemRB.LoadWindow(12, "GUIOPT") Window.AddAlias("SUB_WIN", 1) Window.SetFlags(WF_BORDERLESS, OP_OR) HelpTextArea2 = GUIOPTControls.OptHelpText('CharacterSounds', Window, 16, 18041) CloseCharacterSoundsWindow = lambda: Window.Close() GUIOPTControls.OptDone(CloseCharacterSoundsWindow, Window, 24) GUIOPTControls.OptCancel(CloseCharacterSoundsWindow, Window, 25) GUIOPTControls.OptCheckbox(18041, 18015, HelpTextArea2, Window, 5, 20, 17138, 'Subtitles') GUIOPTControls.OptCheckbox(18041, 18013, HelpTextArea2, Window, 6, 18, 17139, 'Attack Sounds') GUIOPTControls.OptCheckbox(18041, 18014, HelpTextArea2, Window, 7, 19, 17140, 'Footsteps') GUIOPTControls.OptRadio(DisplayHelpCommandSounds, Window, 8, 21, 'Command Sounds Frequency', 3) GUIOPTControls.OptRadio(DisplayHelpCommandSounds, Window, 9, 21, 'Command Sounds Frequency', 2) GUIOPTControls.OptRadio(DisplayHelpCommandSounds, Window, 10, 21, 'Command Sounds Frequency', 1) GUIOPTControls.OptRadio(DisplayHelpSelectionSounds, Window, 58, 57, 'Selection Sounds Frequency', 3) GUIOPTControls.OptRadio(DisplayHelpSelectionSounds, Window, 59, 57, 'Selection Sounds Frequency', 2) GUIOPTControls.OptRadio(DisplayHelpSelectionSounds, Window, 60, 57, 'Selection Sounds Frequency', 1) Window.ShowModal(MODAL_SHADOW_GRAY)