BUG Core.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <!--
  3. BUG Core
  4. by EmperorFool
  5. Holds state and options used by the BUG Core.
  6. Copyright (c) 2008 The BUG Mod.
  7. -->
  8. <mod id="Core"
  9. name="BUG Core"
  10. author="EmperorFool"
  11. version="3.5"
  12. build="1324"
  13. date="09/11/2008"
  14. url="http://forums.civfanatics.com/forumdisplay.php?f=268">
  15. <options id="Core" file="BUG Core.ini">
  16. <section id="General">
  17. <option id="OptionsScreenOpened" key="Options Screen Opened"
  18. type="boolean" default="False"
  19. help="Set to True the first time the player opens the BUG Options screen"/>
  20. </section>
  21. <section id="Logging">
  22. <list id="ScreenLogLevel" key="Screen Level"
  23. type="int" default="2" listType="string"
  24. values="Debug|Info|Warning|Error|None">
  25. <change module="BugUtil" function="readLoggingOptions"/>
  26. </list>
  27. <list id="FileLogLevel" key="File Level"
  28. type="int" default="0" listType="string"
  29. values="Debug|Info|Warning|Error|None">
  30. <change module="BugUtil" function="readLoggingOptions"/>
  31. </list>
  32. <option id="LogTime" key="Log Time"
  33. type="boolean" default="True">
  34. <change module="BugUtil" function="readLoggingOptions"/>
  35. </option>
  36. </section>
  37. <section id="Subversion">
  38. <option id="CheckForUpdates" key="Check For Updates"
  39. type="boolean" default="False"
  40. title="Check for Updates">
  41. <change module="BugUpdateChecker" function="onCheckForUpdatesChanged"/>
  42. </option>
  43. <option id="LocalRoot" key="Local Root"
  44. type="string" default=""
  45. title="Local Root Directory">
  46. <change module="BugUpdateChecker" function="onLocalRootChanged"/>
  47. </option>
  48. <option id="LocalVersion" key="Local Revision"
  49. type="int" default="0"
  50. title="Local Revision"/>
  51. <option id="RepositoryUrl" key="Repository URL"
  52. type="string" default="http://civ4bug.svn.sourceforge.net/svnroot/civ4bug/BUG Mod/"
  53. title="Repository URL">
  54. <change module="BugUpdateChecker" function="onRepositoryUrlChanged"/>
  55. </option>
  56. <option id="RepositoryVersion" key="Repository Revision"
  57. type="int" default="0"
  58. title="Repository Revision"/>
  59. <option id="LastSvnCheck" type="float" default="0"/>
  60. </section>
  61. </options>
  62. <init module="BugUtil" function="readLoggingOptions" immediate="true"/>
  63. <init module="BugDll" immediate="true"/>
  64. <init module="BugEventManager" function="configure" immediate="true">
  65. <arg name="logging" type="boolean" value="false"/>
  66. <arg name="noLogEvents" type="set">
  67. "gameUpdate",
  68. "mouseEvent",
  69. "kbdEvent"
  70. </arg>
  71. </init>
  72. <!-- BUG Options Screen UI control handlers -->
  73. <export module="BugOptionsScreen" function="handleBugExitButtonInput" to="CvOptionsScreenCallbackInterface"/>
  74. <export module="BugOptionsScreen" function="handleBugHelpButtonInput" to="CvOptionsScreenCallbackInterface"/>
  75. <export module="BugOptionsScreen" function="handleBugCheckboxClicked" to="CvOptionsScreenCallbackInterface"/>
  76. <export module="BugOptionsScreen" function="handleBugTextEditChange" to="CvOptionsScreenCallbackInterface"/>
  77. <export module="BugOptionsScreen" function="handleBugDropdownChange" to="CvOptionsScreenCallbackInterface"/>
  78. <export module="BugOptionsScreen" function="handleBugIntDropdownChange" to="CvOptionsScreenCallbackInterface"/>
  79. <export module="BugOptionsScreen" function="handleBugFloatDropdownChange" to="CvOptionsScreenCallbackInterface"/>
  80. <export module="BugOptionsScreen" function="handleBugColorDropdownChange" to="CvOptionsScreenCallbackInterface"/>
  81. <export module="BugOptionsScreen" function="handleBugSliderChanged" to="CvOptionsScreenCallbackInterface"/>
  82. <!-- Civ4 Options Screen UI control handlers -->
  83. <extend how="after" module="BugOptionsScreen" function="handleLanguagesDropdownBoxInput" to="CvOptionsScreenCallbackInterface"/>
  84. <extend how="after" module="BugOptionsScreen" function="handleResolutionDropdownInput" to="CvOptionsScreenCallbackInterface"/>
  85. <event type="gameUpdate" module="BugUtil" function="doDeferredCalls"/>
  86. <event type="BeginPlayerTurn" module="BugUtil" function="doHotSeatCheck"/>
  87. <event type="SwitchHotSeatPlayer" module="CvMainInterface" function="onSwitchHotSeatPlayer"/>
  88. <!-- Game ScriptData -->
  89. <event type="GameStart" module="BugData" function="onGameStart"/>
  90. <event type="OnLoad" module="BugData" function="onGameLoad"/>
  91. <!--event type="OnPreSave" module="BugData" function="onPreSave"/-->
  92. <event type="LanguageChanged" module="BugOptions" function="clearAllTranslations"/>
  93. <event type="LanguageChanged" module="BugOptionsScreen" function="clearAllTranslations"/>
  94. <shortcut module="BugOptionsScreen" function="showOptionsScreen" keys="Alt Ctrl O | Alt J"/>
  95. <shortcut module="BugHelp" function="launch" keys="Alt Ctrl F1"/>
  96. <!--arg type="string" value="TXT_KEY_BUG_HELP_FILE"/-->
  97. </mod>