net.dreditor.ui 0.0.0-stage → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (545) hide show
  1. package/.attestation.p7m +0 -0
  2. package/AnimatorMenuGroup.cs +299 -0
  3. package/AnimatorMenuGroup.cs.meta +11 -0
  4. package/Buttons/AnyKey.cs +74 -0
  5. package/Buttons/AnyKey.cs.meta +11 -0
  6. package/Buttons/ContinueLoadGameButton.cs +73 -0
  7. package/Buttons/ContinueLoadGameButton.cs.meta +11 -0
  8. package/Buttons/ContinueSelectIfDataLoaded.cs +68 -0
  9. package/Buttons/ContinueSelectIfDataLoaded.cs.meta +11 -0
  10. package/Buttons/DREButton.cs +75 -0
  11. package/Buttons/DREButton.cs.meta +11 -0
  12. package/Buttons/EvaluateLoadGameButton.cs +156 -0
  13. package/Buttons/EvaluateLoadGameButton.cs.meta +11 -0
  14. package/Buttons/MainMenuButton.cs +67 -0
  15. package/Buttons/MainMenuButton.cs.meta +11 -0
  16. package/Buttons/MoveToLoadedScene.cs +32 -0
  17. package/Buttons/MoveToLoadedScene.cs.meta +11 -0
  18. package/Buttons/MoveToScene.cs +81 -0
  19. package/Buttons/MoveToScene.cs.meta +11 -0
  20. package/Buttons/NewGameButton.cs +42 -0
  21. package/Buttons/NewGameButton.cs.meta +11 -0
  22. package/Buttons/QuitButton.cs +19 -0
  23. package/Buttons/QuitButton.cs.meta +11 -0
  24. package/Buttons/StartGameButton.cs +71 -0
  25. package/Buttons/StartGameButton.cs.meta +11 -0
  26. package/Buttons.meta +8 -0
  27. package/CarouselBase.cs +152 -0
  28. package/CarouselBase.cs.meta +2 -0
  29. package/CarouselComponent.cs +36 -0
  30. package/CarouselComponent.cs.meta +2 -0
  31. package/CarouselListExtentions.cs +50 -0
  32. package/CarouselListExtentions.cs.meta +11 -0
  33. package/CarouselSelectTweening.cs +253 -0
  34. package/CarouselSelectTweening.cs.meta +11 -0
  35. package/ChangeSpriteOnIndex.cs +67 -0
  36. package/ChangeSpriteOnIndex.cs.meta +11 -0
  37. package/DREditor.UI.asmdef +28 -0
  38. package/DREditor.UI.asmdef.meta +7 -0
  39. package/IGridIconSlot.cs +22 -0
  40. package/IGridIconSlot.cs.meta +11 -0
  41. package/ITrackableIndex.cs +16 -0
  42. package/ITrackableIndex.cs.meta +2 -0
  43. package/IUnlockableUIOption.cs +16 -0
  44. package/IUnlockableUIOption.cs.meta +11 -0
  45. package/IndexSelector.cs +188 -0
  46. package/IndexSelector.cs.meta +2 -0
  47. package/LayeredFocusCarousel.cs +36 -0
  48. package/LayeredFocusCarousel.cs.meta +2 -0
  49. package/MenuGroup.cs +295 -0
  50. package/MenuGroup.cs.meta +11 -0
  51. package/MenuGroupBase.cs +233 -0
  52. package/MenuGroupBase.cs.meta +11 -0
  53. package/MenuModifier.cs +45 -0
  54. package/MenuModifier.cs.meta +11 -0
  55. package/MenuState.cs +69 -0
  56. package/MenuState.cs.meta +11 -0
  57. package/Options/ChangerUIList.cs +55 -0
  58. package/Options/ChangerUIList.cs.meta +11 -0
  59. package/Options/DifficultyGroup.cs +225 -0
  60. package/Options/DifficultyGroup.cs.meta +11 -0
  61. package/Options/Editor/OptionBuilder.cs +149 -0
  62. package/Options/Editor/OptionBuilder.cs.meta +11 -0
  63. package/Options/Editor/OptionBuilderEditor.cs +325 -0
  64. package/Options/Editor/OptionBuilderEditor.cs.meta +11 -0
  65. package/Options/Editor/OptionInstance.cs +23 -0
  66. package/Options/Editor/OptionInstance.cs.meta +11 -0
  67. package/Options/Editor/OptionType.cs +23 -0
  68. package/Options/Editor/OptionType.cs.meta +11 -0
  69. package/Options/Editor.meta +8 -0
  70. package/Options/NavigationGroup.cs +36 -0
  71. package/Options/NavigationGroup.cs.meta +11 -0
  72. package/Options/NavigationSelect.cs +37 -0
  73. package/Options/NavigationSelect.cs.meta +11 -0
  74. package/Options/OptionToggleUI.cs +253 -0
  75. package/Options/OptionToggleUI.cs.meta +11 -0
  76. package/Options/OptionUIGroup.cs +303 -0
  77. package/Options/OptionUIGroup.cs.meta +11 -0
  78. package/Options/OptionUIGroupBase.cs +41 -0
  79. package/Options/OptionUIGroupBase.cs.meta +11 -0
  80. package/Options/OptionUIManager.cs +69 -0
  81. package/Options/OptionUIManager.cs.meta +11 -0
  82. package/Options/SelectableOption.cs +63 -0
  83. package/Options/SelectableOption.cs.meta +11 -0
  84. package/Options/SliderOption.cs +48 -0
  85. package/Options/SliderOption.cs.meta +11 -0
  86. package/Options/SliderUIOption.cs +99 -0
  87. package/Options/SliderUIOption.cs.meta +11 -0
  88. package/Options/ToggleOption.cs +15 -0
  89. package/Options/ToggleOption.cs.meta +11 -0
  90. package/Options.meta +8 -0
  91. package/PopUpModifier.cs +127 -0
  92. package/PopUpModifier.cs.meta +11 -0
  93. package/RegulationRules/IRegulation.cs +37 -0
  94. package/RegulationRules/IRegulation.cs.meta +11 -0
  95. package/RegulationRules/IRegulationsUIRepository.cs +19 -0
  96. package/RegulationRules/IRegulationsUIRepository.cs.meta +11 -0
  97. package/RegulationRules/Regulation.cs +85 -0
  98. package/RegulationRules/Regulation.cs.meta +11 -0
  99. package/RegulationRules/RegulationAnimations/RegulationAnimator.controller +220 -0
  100. package/RegulationRules/RegulationAnimations/RegulationAnimator.controller.meta +8 -0
  101. package/RegulationRules/RegulationAnimations/ShowRegulation.anim +295 -0
  102. package/RegulationRules/RegulationAnimations/ShowRegulation.anim.meta +8 -0
  103. package/RegulationRules/RegulationAnimations.meta +8 -0
  104. package/RegulationRules/RegulationDisplayer.cs +42 -0
  105. package/RegulationRules/RegulationDisplayer.cs.meta +2 -0
  106. package/RegulationRules/RegulationSaveHandler.cs +96 -0
  107. package/RegulationRules/RegulationSaveHandler.cs.meta +11 -0
  108. package/RegulationRules/RegulationsDatabase.cs +53 -0
  109. package/RegulationRules/RegulationsDatabase.cs.meta +11 -0
  110. package/RegulationRules/RegulationsUI.cs +238 -0
  111. package/RegulationRules/RegulationsUI.cs.meta +11 -0
  112. package/RegulationRules/RegulationsUIBase.cs +108 -0
  113. package/RegulationRules/RegulationsUIBase.cs.meta +2 -0
  114. package/RegulationRules/RegulationsUtility.cs +151 -0
  115. package/RegulationRules/RegulationsUtility.cs.meta +11 -0
  116. package/RegulationRules.meta +8 -0
  117. package/RewireUINavigation.cs +226 -0
  118. package/RewireUINavigation.cs.meta +11 -0
  119. package/Samples~/3D_UI_Canvas_Shell.prefab +709 -0
  120. package/Samples~/3D_UI_Canvas_Shell.prefab.meta +7 -0
  121. package/Samples~/3D_UI_Canvas_Template.prefab +365 -0
  122. package/Samples~/3D_UI_Canvas_Template.prefab.meta +7 -0
  123. package/Samples~/Animations/3D/ConfirmSelection.anim +1313 -0
  124. package/Samples~/Animations/3D/ConfirmSelection.anim.meta +8 -0
  125. package/Samples~/Animations/3D/DeSelected.anim +431 -0
  126. package/Samples~/Animations/3D/DeSelected.anim.meta +8 -0
  127. package/Samples~/Animations/3D/Disappear.anim +536 -0
  128. package/Samples~/Animations/3D/Disappear.anim.meta +8 -0
  129. package/Samples~/Animations/3D/IsSelected.anim +431 -0
  130. package/Samples~/Animations/3D/IsSelected.anim.meta +8 -0
  131. package/Samples~/Animations/3D/ItemFade.anim +161 -0
  132. package/Samples~/Animations/3D/ItemFade.anim.meta +8 -0
  133. package/Samples~/Animations/3D/ItemIcon.anim +334 -0
  134. package/Samples~/Animations/3D/ItemIcon.anim.meta +8 -0
  135. package/Samples~/Animations/3D/Reticle.anim +173 -0
  136. package/Samples~/Animations/3D/Reticle.anim.meta +8 -0
  137. package/Samples~/Animations/3D/Reticle.controller +2574 -0
  138. package/Samples~/Animations/3D/Reticle.controller.meta +8 -0
  139. package/Samples~/Animations/3D/SBFadeIn.anim +311 -0
  140. package/Samples~/Animations/3D/SBFadeIn.anim.meta +8 -0
  141. package/Samples~/Animations/3D/SBLoop.anim +467 -0
  142. package/Samples~/Animations/3D/SBLoop.anim.meta +8 -0
  143. package/Samples~/Animations/3D.meta +8 -0
  144. package/Samples~/Animations/Dialogue/Choices/Choice.controller +666 -0
  145. package/Samples~/Animations/Dialogue/Choices/Choice.controller.meta +8 -0
  146. package/Samples~/Animations/Dialogue/Choices/Choices.controller +304 -0
  147. package/Samples~/Animations/Dialogue/Choices/Choices.controller.meta +8 -0
  148. package/Samples~/Animations/Dialogue/Choices/ShowChoice.anim +116 -0
  149. package/Samples~/Animations/Dialogue/Choices/ShowChoice.anim.meta +8 -0
  150. package/Samples~/Animations/Dialogue/Choices.meta +8 -0
  151. package/Samples~/Animations/Dialogue/Dialogue UI/Dialogue UI.controller +762 -0
  152. package/Samples~/Animations/Dialogue/Dialogue UI/Dialogue UI.controller.meta +8 -0
  153. package/Samples~/Animations/Dialogue/Dialogue UI/HideBox.anim +1512 -0
  154. package/Samples~/Animations/Dialogue/Dialogue UI/HideBox.anim.meta +8 -0
  155. package/Samples~/Animations/Dialogue/Dialogue UI/MoveBackDialogue.anim +692 -0
  156. package/Samples~/Animations/Dialogue/Dialogue UI/MoveBackDialogue.anim.meta +8 -0
  157. package/Samples~/Animations/Dialogue/Dialogue UI/MoveDialogue.anim +1710 -0
  158. package/Samples~/Animations/Dialogue/Dialogue UI/MoveDialogue.anim.meta +8 -0
  159. package/Samples~/Animations/Dialogue/Dialogue UI/ShowDialogue.anim +1583 -0
  160. package/Samples~/Animations/Dialogue/Dialogue UI/ShowDialogue.anim.meta +8 -0
  161. package/Samples~/Animations/Dialogue/Dialogue UI/ShowInstant.anim +962 -0
  162. package/Samples~/Animations/Dialogue/Dialogue UI/ShowInstant.anim.meta +8 -0
  163. package/Samples~/Animations/Dialogue/Dialogue UI.meta +8 -0
  164. package/Samples~/Animations/Dialogue/Protag WIndow/HideProtag.anim +179 -0
  165. package/Samples~/Animations/Dialogue/Protag WIndow/HideProtag.anim.meta +8 -0
  166. package/Samples~/Animations/Dialogue/Protag WIndow/ProtagUIWindow.controller +214 -0
  167. package/Samples~/Animations/Dialogue/Protag WIndow/ProtagUIWindow.controller.meta +8 -0
  168. package/Samples~/Animations/Dialogue/Protag WIndow/ShowProtag.anim +179 -0
  169. package/Samples~/Animations/Dialogue/Protag WIndow/ShowProtag.anim.meta +8 -0
  170. package/Samples~/Animations/Dialogue/Protag WIndow.meta +8 -0
  171. package/Samples~/Animations/Dialogue/Show Item/HideItem.anim +116 -0
  172. package/Samples~/Animations/Dialogue/Show Item/HideItem.anim.meta +8 -0
  173. package/Samples~/Animations/Dialogue/Show Item/Item Image.controller +130 -0
  174. package/Samples~/Animations/Dialogue/Show Item/Item Image.controller.meta +8 -0
  175. package/Samples~/Animations/Dialogue/Show Item/ShowItem.anim +116 -0
  176. package/Samples~/Animations/Dialogue/Show Item/ShowItem.anim.meta +8 -0
  177. package/Samples~/Animations/Dialogue/Show Item.meta +8 -0
  178. package/Samples~/Animations/Dialogue.meta +8 -0
  179. package/Samples~/Animations/Investigation/BulletGet/Bullet Get Canvas.controller +410 -0
  180. package/Samples~/Animations/Investigation/BulletGet/Bullet Get Canvas.controller.meta +8 -0
  181. package/Samples~/Animations/Investigation/BulletGet/ShowBulletPicture.anim +242 -0
  182. package/Samples~/Animations/Investigation/BulletGet/ShowBulletPicture.anim.meta +8 -0
  183. package/Samples~/Animations/Investigation/BulletGet/ShowGetBullet.anim +809 -0
  184. package/Samples~/Animations/Investigation/BulletGet/ShowGetBullet.anim.meta +8 -0
  185. package/Samples~/Animations/Investigation/BulletGet.meta +8 -0
  186. package/Samples~/Animations/Investigation.meta +8 -0
  187. package/Samples~/Animations/Main_Menu/DifficultyGroup.controller +220 -0
  188. package/Samples~/Animations/Main_Menu/DifficultyGroup.controller.meta +8 -0
  189. package/Samples~/Animations/Main_Menu/HideOptionsMenu.anim +474 -0
  190. package/Samples~/Animations/Main_Menu/HideOptionsMenu.anim.meta +8 -0
  191. package/Samples~/Animations/Main_Menu/MenuOption.controller +1206 -0
  192. package/Samples~/Animations/Main_Menu/MenuOption.controller.meta +8 -0
  193. package/Samples~/Animations/Main_Menu/Options Group.controller +249 -0
  194. package/Samples~/Animations/Main_Menu/Options Group.controller.meta +8 -0
  195. package/Samples~/Animations/Main_Menu/Press Start.controller +729 -0
  196. package/Samples~/Animations/Main_Menu/Press Start.controller.meta +8 -0
  197. package/Samples~/Animations/Main_Menu/RevealOptions.anim +743 -0
  198. package/Samples~/Animations/Main_Menu/RevealOptions.anim.meta +8 -0
  199. package/Samples~/Animations/Main_Menu/RevealOptionsMenu.anim +456 -0
  200. package/Samples~/Animations/Main_Menu/RevealOptionsMenu.anim.meta +8 -0
  201. package/Samples~/Animations/Main_Menu.meta +8 -0
  202. package/Samples~/Animations/Main_UI/HideMainUI.anim +998 -0
  203. package/Samples~/Animations/Main_UI/HideMainUI.anim.meta +8 -0
  204. package/Samples~/Animations/Main_UI/Main UI.controller +248 -0
  205. package/Samples~/Animations/Main_UI/Main UI.controller.meta +8 -0
  206. package/Samples~/Animations/Main_UI.meta +8 -0
  207. package/Samples~/Animations/Truth_Bullet_Menu/ShowTBM.anim +295 -0
  208. package/Samples~/Animations/Truth_Bullet_Menu/ShowTBM.anim.meta +8 -0
  209. package/Samples~/Animations/Truth_Bullet_Menu/Truth Bullet Canvas.controller +220 -0
  210. package/Samples~/Animations/Truth_Bullet_Menu/Truth Bullet Canvas.controller.meta +8 -0
  211. package/Samples~/Animations/Truth_Bullet_Menu.meta +8 -0
  212. package/Samples~/Animations.meta +8 -0
  213. package/Samples~/Animator_Bool_UI_Visibility_ETemplate.prefab +81 -0
  214. package/Samples~/Animator_Bool_UI_Visibility_ETemplate.prefab.meta +7 -0
  215. package/Samples~/Animator_Visibility_Canvas_Template.prefab +185 -0
  216. package/Samples~/Animator_Visibility_Canvas_Template.prefab.meta +7 -0
  217. package/Samples~/Appear_Bool_Handler.prefab +511 -0
  218. package/Samples~/Appear_Bool_Handler.prefab.meta +7 -0
  219. package/Samples~/Bool_Save_Handler.prefab +79 -0
  220. package/Samples~/Bool_Save_Handler.prefab.meta +7 -0
  221. package/Samples~/Carousel_Component_Shell.prefab +115 -0
  222. package/Samples~/Carousel_Component_Shell.prefab.meta +7 -0
  223. package/Samples~/Carousel_Component_Template.prefab +174 -0
  224. package/Samples~/Carousel_Component_Template.prefab.meta +7 -0
  225. package/Samples~/Chapter_Number_Text.prefab +177 -0
  226. package/Samples~/Chapter_Number_Text.prefab.meta +7 -0
  227. package/Samples~/Chapter_Section_UI_Template.prefab +290 -0
  228. package/Samples~/Chapter_Section_UI_Template.prefab.meta +7 -0
  229. package/Samples~/Chapter_Text.prefab +175 -0
  230. package/Samples~/Chapter_Text.prefab.meta +7 -0
  231. package/Samples~/Choice_Manager_Shell.prefab +232 -0
  232. package/Samples~/Choice_Manager_Shell.prefab.meta +7 -0
  233. package/Samples~/Choice_Manager_Template.prefab +377 -0
  234. package/Samples~/Choice_Manager_Template.prefab.meta +7 -0
  235. package/Samples~/Choice_Option_Shell.prefab +257 -0
  236. package/Samples~/Choice_Option_Shell.prefab.meta +7 -0
  237. package/Samples~/Choice_Option_Template.prefab +285 -0
  238. package/Samples~/Choice_Option_Template.prefab.meta +7 -0
  239. package/Samples~/Choice_Option_Yes_No_Template.prefab +196 -0
  240. package/Samples~/Choice_Option_Yes_No_Template.prefab.meta +7 -0
  241. package/Samples~/Choice_UI_Shell.prefab +118 -0
  242. package/Samples~/Choice_UI_Shell.prefab.meta +7 -0
  243. package/Samples~/Choice_UI_Template.prefab +601 -0
  244. package/Samples~/Choice_UI_Template.prefab.meta +7 -0
  245. package/Samples~/ClickedNewGame.asset +21 -0
  246. package/Samples~/ClickedNewGame.asset.meta +8 -0
  247. package/Samples~/Confirm_Canvas_Shell.prefab +85 -0
  248. package/Samples~/Confirm_Canvas_Shell.prefab.meta +7 -0
  249. package/Samples~/Confirm_Canvas_Template.prefab +716 -0
  250. package/Samples~/Confirm_Canvas_Template.prefab.meta +7 -0
  251. package/Samples~/Confirm_Select_Bool_Handler.prefab +448 -0
  252. package/Samples~/Confirm_Select_Bool_Handler.prefab.meta +7 -0
  253. package/Samples~/Continue_Button_ETemplate.prefab +344 -0
  254. package/Samples~/Continue_Button_ETemplate.prefab.meta +7 -0
  255. package/Samples~/ContinuedGame.asset +15 -0
  256. package/Samples~/ContinuedGame.asset.meta +8 -0
  257. package/Samples~/ControlPresets/BlackenedSelect_Controls.preset +120 -0
  258. package/Samples~/ControlPresets/BlackenedSelect_Controls.preset.meta +8 -0
  259. package/Samples~/ControlPresets/CA_Controls.preset +145 -0
  260. package/Samples~/ControlPresets/CA_Controls.preset.meta +8 -0
  261. package/Samples~/ControlPresets/ControlsDatabase.preset +117 -0
  262. package/Samples~/ControlPresets/ControlsDatabase.preset.meta +8 -0
  263. package/Samples~/ControlPresets/Convo_Controls.preset +195 -0
  264. package/Samples~/ControlPresets/Convo_Controls.preset.meta +8 -0
  265. package/Samples~/ControlPresets/FTE_Minigame_UI_Controls.preset +195 -0
  266. package/Samples~/ControlPresets/FTE_Minigame_UI_Controls.preset.meta +8 -0
  267. package/Samples~/ControlPresets/NSDP_Controls.preset +220 -0
  268. package/Samples~/ControlPresets/NSDP_Controls.preset.meta +8 -0
  269. package/Samples~/ControlPresets/NSD_Controls.preset +195 -0
  270. package/Samples~/ControlPresets/NSD_Controls.preset.meta +8 -0
  271. package/Samples~/ControlPresets/RS_Controls.preset +195 -0
  272. package/Samples~/ControlPresets/RS_Controls.preset.meta +8 -0
  273. package/Samples~/ControlPresets/TPFD_Controls.preset +245 -0
  274. package/Samples~/ControlPresets/TPFD_Controls.preset.meta +8 -0
  275. package/Samples~/ControlPresets/ThreeD_Controls.preset +245 -0
  276. package/Samples~/ControlPresets/ThreeD_Controls.preset.meta +8 -0
  277. package/Samples~/ControlPresets/Trial_Convo_Controls.preset +195 -0
  278. package/Samples~/ControlPresets/Trial_Convo_Controls.preset.meta +8 -0
  279. package/Samples~/ControlPresets.meta +8 -0
  280. package/Samples~/Control_UI_Row_ETemplate.prefab +565 -0
  281. package/Samples~/Control_UI_Row_ETemplate.prefab.meta +7 -0
  282. package/Samples~/Controls_TAB_ETemplate.prefab +556 -0
  283. package/Samples~/Controls_TAB_ETemplate.prefab.meta +7 -0
  284. package/Samples~/Controls_UI_Canvas_ETemplate.prefab +620 -0
  285. package/Samples~/Controls_UI_Canvas_ETemplate.prefab.meta +7 -0
  286. package/Samples~/Controls_UI_Canvas_Shell.prefab +445 -0
  287. package/Samples~/Controls_UI_Canvas_Shell.prefab.meta +7 -0
  288. package/Samples~/Controls_UI_Condition.prefab +69 -0
  289. package/Samples~/Controls_UI_Condition.prefab.meta +7 -0
  290. package/Samples~/Controls_UI_Handler.prefab +196 -0
  291. package/Samples~/Controls_UI_Handler.prefab.meta +7 -0
  292. package/Samples~/Credits_Button_ETemplate.prefab +148 -0
  293. package/Samples~/Credits_Button_ETemplate.prefab.meta +7 -0
  294. package/Samples~/DRE_Regulations_UI.unity +525 -0
  295. package/Samples~/DRE_Regulations_UI.unity.meta +7 -0
  296. package/Samples~/DRE_Selectable_Option.prefab +308 -0
  297. package/Samples~/DRE_Selectable_Option.prefab.meta +7 -0
  298. package/Samples~/Dialogue_Box_ETemplate.prefab +452 -0
  299. package/Samples~/Dialogue_Box_ETemplate.prefab.meta +7 -0
  300. package/Samples~/Dialogue_Box_Text.prefab +152 -0
  301. package/Samples~/Dialogue_Box_Text.prefab.meta +7 -0
  302. package/Samples~/Dialogue_Box_UI_Visibility.prefab +75 -0
  303. package/Samples~/Dialogue_Box_UI_Visibility.prefab.meta +7 -0
  304. package/Samples~/Dialogue_Move_UI_Visibility.prefab +75 -0
  305. package/Samples~/Dialogue_Move_UI_Visibility.prefab.meta +7 -0
  306. package/Samples~/Dialogue_UI_Canvas_Shell.prefab +1365 -0
  307. package/Samples~/Dialogue_UI_Canvas_Shell.prefab.meta +7 -0
  308. package/Samples~/Dialogue_UI_Canvas_Template.prefab +736 -0
  309. package/Samples~/Dialogue_UI_Canvas_Template.prefab.meta +7 -0
  310. package/Samples~/Dialogue_UI_Visibility.prefab +343 -0
  311. package/Samples~/Dialogue_UI_Visibility.prefab.meta +7 -0
  312. package/Samples~/Difficulty_Group_Shell.prefab +468 -0
  313. package/Samples~/Difficulty_Group_Shell.prefab.meta +7 -0
  314. package/Samples~/Difficulty_Group_Template.prefab +575 -0
  315. package/Samples~/Difficulty_Group_Template.prefab.meta +7 -0
  316. package/Samples~/Difficulty_UI_Canvas_Shell.prefab +351 -0
  317. package/Samples~/Difficulty_UI_Canvas_Shell.prefab.meta +7 -0
  318. package/Samples~/Difficulty_UI_Canvas_Template.prefab +678 -0
  319. package/Samples~/Difficulty_UI_Canvas_Template.prefab.meta +7 -0
  320. package/Samples~/DisableContinueButton.asset +15 -0
  321. package/Samples~/DisableContinueButton.asset.meta +8 -0
  322. package/Samples~/DisablePauseCanvas.asset +15 -0
  323. package/Samples~/DisablePauseCanvas.asset.meta +8 -0
  324. package/Samples~/DisplayNameVisible.asset +21 -0
  325. package/Samples~/DisplayNameVisible.asset.meta +8 -0
  326. package/Samples~/Flash_White_Image.prefab +97 -0
  327. package/Samples~/Flash_White_Image.prefab.meta +7 -0
  328. package/Samples~/Float_Save_Handler.prefab +54 -0
  329. package/Samples~/Float_Save_Handler.prefab.meta +7 -0
  330. package/Samples~/HideFakePause.asset +14 -0
  331. package/Samples~/HideFakePause.asset.meta +8 -0
  332. package/Samples~/Instant_Dialogue_UI_Visibility.prefab +264 -0
  333. package/Samples~/Instant_Dialogue_UI_Visibility.prefab.meta +7 -0
  334. package/Samples~/Is_Selected_Bool_Handler.prefab +89 -0
  335. package/Samples~/Is_Selected_Bool_Handler.prefab.meta +7 -0
  336. package/Samples~/Item_Icon_Bool_Handler.prefab +89 -0
  337. package/Samples~/Item_Icon_Bool_Handler.prefab.meta +7 -0
  338. package/Samples~/Item_Name_Display_ETemplate.prefab +357 -0
  339. package/Samples~/Item_Name_Display_ETemplate.prefab.meta +7 -0
  340. package/Samples~/Letter_Box_Canvas.prefab +256 -0
  341. package/Samples~/Letter_Box_Canvas.prefab.meta +7 -0
  342. package/Samples~/Load_Game_Button_ETemplate.prefab +196 -0
  343. package/Samples~/Load_Game_Button_ETemplate.prefab.meta +7 -0
  344. package/Samples~/Main_Menu_Button_DRE.prefab +346 -0
  345. package/Samples~/Main_Menu_Button_DRE.prefab.meta +7 -0
  346. package/Samples~/Main_Menu_System_Shell.prefab +33 -0
  347. package/Samples~/Main_Menu_System_Shell.prefab.meta +7 -0
  348. package/Samples~/Main_Menu_UI_Canvas_Shell.prefab +355 -0
  349. package/Samples~/Main_Menu_UI_Canvas_Shell.prefab.meta +7 -0
  350. package/Samples~/Main_Menu_UI_Canvas_Template.prefab +426 -0
  351. package/Samples~/Main_Menu_UI_Canvas_Template.prefab.meta +7 -0
  352. package/Samples~/Main_UI_Canvas_Shell.prefab +649 -0
  353. package/Samples~/Main_UI_Canvas_Shell.prefab.meta +7 -0
  354. package/Samples~/Main_UI_Canvas_Template.prefab +365 -0
  355. package/Samples~/Main_UI_Canvas_Template.prefab.meta +7 -0
  356. package/Samples~/Menu_Group_Shell.prefab +261 -0
  357. package/Samples~/Menu_Group_Shell.prefab.meta +7 -0
  358. package/Samples~/Menu_Group_Template.prefab +1176 -0
  359. package/Samples~/Menu_Group_Template.prefab.meta +7 -0
  360. package/Samples~/Music_Section_UI_Template.prefab +172 -0
  361. package/Samples~/Music_Section_UI_Template.prefab.meta +7 -0
  362. package/Samples~/Nameplate.prefab +93 -0
  363. package/Samples~/Nameplate.prefab.meta +7 -0
  364. package/Samples~/New_Game_Button_ETemplate.prefab +254 -0
  365. package/Samples~/New_Game_Button_ETemplate.prefab.meta +7 -0
  366. package/Samples~/No_Button_ETemplate.prefab +144 -0
  367. package/Samples~/No_Button_ETemplate.prefab.meta +7 -0
  368. package/Samples~/Object_Name_On_Reticle.prefab +53 -0
  369. package/Samples~/Object_Name_On_Reticle.prefab.meta +7 -0
  370. package/Samples~/OnFinishedLoadingRoomNoDialogue.asset +14 -0
  371. package/Samples~/OnFinishedLoadingRoomNoDialogue.asset.meta +8 -0
  372. package/Samples~/OnLoadingRoom.asset +14 -0
  373. package/Samples~/OnLoadingRoom.asset.meta +8 -0
  374. package/Samples~/OnResumeFinished.asset +15 -0
  375. package/Samples~/OnResumeFinished.asset.meta +8 -0
  376. package/Samples~/Options_UI_Canvas_Shell.prefab +554 -0
  377. package/Samples~/Options_UI_Canvas_Shell.prefab.meta +7 -0
  378. package/Samples~/Options_UI_Canvas_Template.prefab +251 -0
  379. package/Samples~/Options_UI_Canvas_Template.prefab.meta +7 -0
  380. package/Samples~/PauseOptionData.asset +15 -0
  381. package/Samples~/PauseOptionData.asset.meta +8 -0
  382. package/Samples~/Pause_Menu_Shell.prefab +38 -0
  383. package/Samples~/Pause_Menu_Shell.prefab.meta +7 -0
  384. package/Samples~/Pause_Menu_System_Shell.prefab +428 -0
  385. package/Samples~/Pause_Menu_System_Shell.prefab.meta +7 -0
  386. package/Samples~/Pause_Menu_System_Template.prefab +536 -0
  387. package/Samples~/Pause_Menu_System_Template.prefab.meta +7 -0
  388. package/Samples~/Pause_Menu_Template.prefab +956 -0
  389. package/Samples~/Pause_Menu_Template.prefab.meta +7 -0
  390. package/Samples~/Pause_UI_Canvas_Shell.prefab +310 -0
  391. package/Samples~/Pause_UI_Canvas_Shell.prefab.meta +7 -0
  392. package/Samples~/Pause_UI_Canvas_Template.prefab +1433 -0
  393. package/Samples~/Pause_UI_Canvas_Template.prefab.meta +7 -0
  394. package/Samples~/Pop_Up_Button_Parent_Template.prefab +375 -0
  395. package/Samples~/Pop_Up_Button_Parent_Template.prefab.meta +7 -0
  396. package/Samples~/Pop_Up_Shell.prefab +146 -0
  397. package/Samples~/Pop_Up_Shell.prefab.meta +7 -0
  398. package/Samples~/Pop_Up_Template.prefab +442 -0
  399. package/Samples~/Pop_Up_Template.prefab.meta +7 -0
  400. package/Samples~/Present_Choice_UI_Template.prefab +142 -0
  401. package/Samples~/Present_Choice_UI_Template.prefab.meta +7 -0
  402. package/Samples~/Protag_Sprite_One.prefab +147 -0
  403. package/Samples~/Protag_Sprite_One.prefab.meta +7 -0
  404. package/Samples~/Protag_Window_UI_Shell.prefab +940 -0
  405. package/Samples~/Protag_Window_UI_Shell.prefab.meta +7 -0
  406. package/Samples~/Protag_Window_UI_Template.prefab +248 -0
  407. package/Samples~/Protag_Window_UI_Template.prefab.meta +7 -0
  408. package/Samples~/Quit_Game_Button_Template.prefab +328 -0
  409. package/Samples~/Quit_Game_Button_Template.prefab.meta +7 -0
  410. package/Samples~/Quit_Pop_Up_Template.prefab +145 -0
  411. package/Samples~/Quit_Pop_Up_Template.prefab.meta +7 -0
  412. package/Samples~/Regulations_Manager.prefab +67 -0
  413. package/Samples~/Regulations_Manager.prefab.meta +7 -0
  414. package/Samples~/Regulations_UI_Canvas_ETemplate.prefab +1243 -0
  415. package/Samples~/Regulations_UI_Canvas_ETemplate.prefab.meta +7 -0
  416. package/Samples~/ResetPauseMenu.asset +15 -0
  417. package/Samples~/ResetPauseMenu.asset.meta +8 -0
  418. package/Samples~/Reticle_Animation_Component.prefab +67 -0
  419. package/Samples~/Reticle_Animation_Component.prefab.meta +7 -0
  420. package/Samples~/Reticle_UI_Shell.prefab +1783 -0
  421. package/Samples~/Reticle_UI_Shell.prefab.meta +7 -0
  422. package/Samples~/Reticle_UI_Template.prefab +281 -0
  423. package/Samples~/Reticle_UI_Template.prefab.meta +7 -0
  424. package/Samples~/Save_Layout_Mask_Shell.prefab +154 -0
  425. package/Samples~/Save_Layout_Mask_Shell.prefab.meta +7 -0
  426. package/Samples~/Save_Layout_Mask_Template.prefab +3697 -0
  427. package/Samples~/Save_Layout_Mask_Template.prefab.meta +7 -0
  428. package/Samples~/Save_Load_Group_Shell.prefab +146 -0
  429. package/Samples~/Save_Load_Group_Shell.prefab.meta +7 -0
  430. package/Samples~/Save_Load_Group_Template.prefab +1718 -0
  431. package/Samples~/Save_Load_Group_Template.prefab.meta +7 -0
  432. package/Samples~/Save_Load_Menu_Canvas_Shell.prefab +134 -0
  433. package/Samples~/Save_Load_Menu_Canvas_Shell.prefab.meta +7 -0
  434. package/Samples~/Save_Load_Menu_Canvas_Template.prefab +2290 -0
  435. package/Samples~/Save_Load_Menu_Canvas_Template.prefab.meta +7 -0
  436. package/Samples~/Save_Load_Pause_Canvas_Template.prefab +191 -0
  437. package/Samples~/Save_Load_Pause_Canvas_Template.prefab.meta +7 -0
  438. package/Samples~/Save_Slot_ETemplate.prefab +619 -0
  439. package/Samples~/Save_Slot_ETemplate.prefab.meta +7 -0
  440. package/Samples~/SetNewGameTempFirst.asset +15 -0
  441. package/Samples~/SetNewGameTempFirst.asset.meta +8 -0
  442. package/Samples~/Set_Controls_Key_By_Mode_Event.prefab +62 -0
  443. package/Samples~/Set_Controls_Key_By_Mode_Event.prefab.meta +7 -0
  444. package/Samples~/ShowFakePause.asset +14 -0
  445. package/Samples~/ShowFakePause.asset.meta +8 -0
  446. package/Samples~/ShowPauseGroup.asset +14 -0
  447. package/Samples~/ShowPauseGroup.asset.meta +8 -0
  448. package/Samples~/Slider_Bar_Option_ETemplate.prefab +609 -0
  449. package/Samples~/Slider_Bar_Option_ETemplate.prefab.meta +7 -0
  450. package/Samples~/Speak_Icon_Bool_Handler.prefab +89 -0
  451. package/Samples~/Speak_Icon_Bool_Handler.prefab.meta +7 -0
  452. package/Samples~/StartPauseGroup.asset +14 -0
  453. package/Samples~/StartPauseGroup.asset.meta +8 -0
  454. package/Samples~/Start_Game_Button_DRE.prefab +226 -0
  455. package/Samples~/Start_Game_Button_DRE.prefab.meta +7 -0
  456. package/Samples~/Start_Group_ETemplate.prefab +330 -0
  457. package/Samples~/Start_Group_ETemplate.prefab.meta +7 -0
  458. package/Samples~/System_Menu_Shell.prefab +38 -0
  459. package/Samples~/System_Menu_Shell.prefab.meta +7 -0
  460. package/Samples~/System_Menu_Template.prefab +2396 -0
  461. package/Samples~/System_Menu_Template.prefab.meta +7 -0
  462. package/Samples~/System_TAB_ETemplate.prefab +734 -0
  463. package/Samples~/System_TAB_ETemplate.prefab.meta +7 -0
  464. package/Samples~/System_UI_Canvas_Shell.prefab +328 -0
  465. package/Samples~/System_UI_Canvas_Shell.prefab.meta +7 -0
  466. package/Samples~/System_UI_Canvas_Template.prefab +1520 -0
  467. package/Samples~/System_UI_Canvas_Template.prefab.meta +7 -0
  468. package/Samples~/TMP_Marq_Mask.prefab +336 -0
  469. package/Samples~/TMP_Marq_Mask.prefab.meta +7 -0
  470. package/Samples~/Title_Group_Shell.prefab +191 -0
  471. package/Samples~/Title_Group_Shell.prefab.meta +7 -0
  472. package/Samples~/Title_Group_Template.prefab +709 -0
  473. package/Samples~/Title_Group_Template.prefab.meta +7 -0
  474. package/Samples~/Toggle_Option_ETemplate.prefab +1086 -0
  475. package/Samples~/Toggle_Option_ETemplate.prefab.meta +7 -0
  476. package/Samples~/UI_Button_DRE.prefab +268 -0
  477. package/Samples~/UI_Button_DRE.prefab.meta +7 -0
  478. package/Samples~/Value_Event_Save_Handlers.prefab +413 -0
  479. package/Samples~/Value_Event_Save_Handlers.prefab.meta +7 -0
  480. package/Samples~/Yes_Button_ETemplate.prefab +260 -0
  481. package/Samples~/Yes_Button_ETemplate.prefab.meta +7 -0
  482. package/ScrollGridUI.cs +360 -0
  483. package/ScrollGridUI.cs.meta +11 -0
  484. package/ScrollOption.cs +65 -0
  485. package/ScrollOption.cs.meta +11 -0
  486. package/ScrollOptionModifier.cs +77 -0
  487. package/ScrollOptionModifier.cs.meta +11 -0
  488. package/ScrollableIndexSelector.cs +56 -0
  489. package/ScrollableIndexSelector.cs.meta +2 -0
  490. package/SelectHandler.cs +35 -0
  491. package/SelectHandler.cs.meta +11 -0
  492. package/SelectableMenuGroupBase.cs +197 -0
  493. package/SelectableMenuGroupBase.cs.meta +11 -0
  494. package/SelectableUIOption.cs +77 -0
  495. package/SelectableUIOption.cs.meta +11 -0
  496. package/SelectedItemDisplayer.cs +19 -0
  497. package/SelectedItemDisplayer.cs.meta +11 -0
  498. package/TrackedIndexListener.cs +67 -0
  499. package/TrackedIndexListener.cs.meta +2 -0
  500. package/UIControls/CallableControlledUI.cs +64 -0
  501. package/UIControls/CallableControlledUI.cs.meta +2 -0
  502. package/UIControls/CallableUIBase.cs +103 -0
  503. package/UIControls/CallableUIBase.cs.meta +11 -0
  504. package/UIControls/ControlPair.cs +24 -0
  505. package/UIControls/ControlPair.cs.meta +11 -0
  506. package/UIControls/ControlPanelRow.cs +67 -0
  507. package/UIControls/ControlPanelRow.cs.meta +11 -0
  508. package/UIControls/ControlsDatabase.cs +36 -0
  509. package/UIControls/ControlsDatabase.cs.meta +11 -0
  510. package/UIControls/ControlsUI.cs +336 -0
  511. package/UIControls/ControlsUI.cs.meta +11 -0
  512. package/UIControls/ControlsUIHandler.cs +16 -0
  513. package/UIControls/ControlsUIHandler.cs.meta +11 -0
  514. package/UIControls/ControlsUIPanel.cs +49 -0
  515. package/UIControls/ControlsUIPanel.cs.meta +11 -0
  516. package/UIControls/ControlsUIService.cs +12 -0
  517. package/UIControls/ControlsUIService.cs.meta +11 -0
  518. package/UIControls/ControlsUISlot.cs +243 -0
  519. package/UIControls/ControlsUISlot.cs.meta +11 -0
  520. package/UIControls/ControlsUITab.cs +80 -0
  521. package/UIControls/ControlsUITab.cs.meta +11 -0
  522. package/UIControls/IControlRowData.cs +42 -0
  523. package/UIControls/IControlRowData.cs.meta +11 -0
  524. package/UIControls/IControlsUIPanel.cs +25 -0
  525. package/UIControls/IControlsUIPanel.cs.meta +11 -0
  526. package/UIControls/IControlsUIRepository.cs +17 -0
  527. package/UIControls/IControlsUIRepository.cs.meta +11 -0
  528. package/UIControls/IControlsUIRow.cs +16 -0
  529. package/UIControls/IControlsUIRow.cs.meta +11 -0
  530. package/UIControls/KeysUITab.cs +85 -0
  531. package/UIControls/KeysUITab.cs.meta +11 -0
  532. package/UIControls/ModeKeyPair.cs +25 -0
  533. package/UIControls/ModeKeyPair.cs.meta +2 -0
  534. package/UIControls/SetControlsKeyByMode.cs +57 -0
  535. package/UIControls/SetControlsKeyByMode.cs.meta +11 -0
  536. package/UIControls/SystemUITab.cs +30 -0
  537. package/UIControls/SystemUITab.cs.meta +11 -0
  538. package/UIControls.meta +8 -0
  539. package/VectorIndexSelector.cs +48 -0
  540. package/VectorIndexSelector.cs.meta +2 -0
  541. package/VerticalScrollWindow.cs +354 -0
  542. package/VerticalScrollWindow.cs.meta +11 -0
  543. package/package.json +47 -4
  544. package/package.json.meta +7 -0
  545. package/README.md +0 -3
@@ -0,0 +1,49 @@
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using UnityEngine;
3
+ using UnityEngine.Serialization;
4
+
5
+ namespace DREditor.UI.UIControls
6
+ {
7
+ /// <summary>
8
+ ///
9
+ /// </summary>
10
+ [CreateAssetMenu(menuName = "DREditor/Controls UI/Control Panel", fileName = "Control Panel")]
11
+ public class ControlsUIPanel : ScriptableObject, IControlsUIPanel
12
+ {
13
+ /// <summary>
14
+ ///
15
+ /// </summary>
16
+ [Header("")]
17
+ [Header("")]
18
+ [Space]
19
+ [Tooltip("")]
20
+ [FormerlySerializedAs("PanelTitle")]
21
+ [SerializeField] protected string panelTitle;
22
+
23
+ /// <summary>
24
+ ///
25
+ /// </summary>
26
+ [Space]
27
+
28
+ [Tooltip("")]
29
+ [FormerlySerializedAs("ControlRows")]
30
+ [SerializeField] protected ControlPanelRow[] controlRows;
31
+
32
+ /// <summary>
33
+ ///
34
+ /// </summary>
35
+ [Space]
36
+
37
+ [Tooltip("")]
38
+ [FormerlySerializedAs("SystemDescription")]
39
+ [TextArea(minLines: 30, maxLines: 30)]
40
+ [SerializeField] protected string systemDescription;
41
+
42
+
43
+ public string Title => panelTitle;
44
+
45
+ public IControlRowData[] Rows => controlRows;
46
+
47
+ public string SystemDescription => systemDescription;
48
+ }
49
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 30cfb6c1f7ddded41847c0065d18fb60
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,12 @@
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Services;
3
+
4
+ namespace DREditor.UI.UIControls
5
+ {
6
+ /// <summary>
7
+ ///
8
+ /// </summary>
9
+ [ClassHeader(nameof(ServiceHolder<ControlsUIService>) + " for type: " + nameof(ControlsUIService) +
10
+ "\n\n")]
11
+ public class ControlsUIService : ServiceHolder<ControlsUIService> { }
12
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 4eb314ea82fb4594e990af1677315b8b
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,243 @@
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Input;
3
+ using DREditor.Services;
4
+ using DREditor.Utility;
5
+ using NUnit.Framework;
6
+ using System.Collections.Generic;
7
+ using TMPro;
8
+ using UnityEngine;
9
+ using UnityEngine.InputSystem;
10
+ using UnityEngine.UI;
11
+
12
+ namespace DREditor.UI.UIControls
13
+ {
14
+ /// <summary>
15
+ ///
16
+ /// </summary>
17
+ [ClassHeader(nameof(IControlsUIRow) +
18
+ "\n\n")]
19
+ public class ControlsUISlot : MonoBehaviour, IControlsUIRow
20
+ {
21
+ /// <summary>
22
+ ///
23
+ /// </summary>
24
+ [Header("")]
25
+ [Divider]
26
+ [Tooltip("")]
27
+ [SerializeField] protected Image left = null;
28
+
29
+ /// <summary>
30
+ ///
31
+ /// </summary>
32
+ [Tooltip("")]
33
+ [SerializeField] protected Image center = null;
34
+
35
+ /// <summary>
36
+ ///
37
+ /// </summary>
38
+ [Tooltip("")]
39
+ [SerializeField] protected Image right = null;
40
+
41
+ /// <summary>
42
+ ///
43
+ /// </summary>
44
+ [Tooltip("")]
45
+ [SerializeField] protected TextMeshProUGUI controlKey = null;
46
+
47
+ /// <summary>
48
+ ///
49
+ /// </summary>
50
+ [Tooltip("")]
51
+ [SerializeField] protected TextMeshProUGUI controlName = null;
52
+
53
+ /// <summary>
54
+ ///
55
+ /// </summary>
56
+ [Tooltip("")]
57
+ [SerializeField] protected bool prioritizeImages = false;
58
+
59
+ /// <summary>
60
+ ///
61
+ /// </summary>
62
+ [Tooltip("")]
63
+ [SerializeField] protected List<string> filterGroups = new()
64
+ {
65
+ "Delta/Mouse",
66
+ "Press/",
67
+ "Left Button/Left Click",
68
+ "Right Button/Right Click"
69
+ };
70
+
71
+
72
+ /// <summary>
73
+ ///
74
+ /// </summary>
75
+ protected IControlRowData row;
76
+
77
+
78
+ /// <summary>
79
+ ///
80
+ /// </summary>
81
+ protected readonly string UnboundName = "Unbound";
82
+
83
+
84
+ /// <inheritdoc/>
85
+ public virtual void DisplayRow(IControlRowData row)
86
+ {
87
+ InitializeRow(row);
88
+
89
+ ApplyRowData();
90
+
91
+ DisplayActiveSprites();
92
+ }
93
+
94
+ /// <summary>
95
+ ///
96
+ /// </summary>
97
+ /// <param name="row"></param>
98
+ protected virtual void InitializeRow(IControlRowData row) => this.row = row;
99
+
100
+ /// <summary>
101
+ ///
102
+ /// </summary>
103
+ protected virtual void ApplyRowData()
104
+ {
105
+ PopulateKey();
106
+
107
+ PopulateDescription();
108
+ }
109
+
110
+ /// <summary>
111
+ ///
112
+ /// </summary>
113
+ protected virtual void PopulateKey()
114
+ {
115
+ if (prioritizeImages)
116
+ PopulateImages();
117
+ else if (GetControlKey() is string keyName)
118
+ PopulateText(controlKey, FilterBindingName(keyName));
119
+ else
120
+ PopulateText(controlKey, UnboundName);
121
+ }
122
+
123
+ /// <summary>
124
+ ///
125
+ /// </summary>
126
+ /// <returns></returns>
127
+ protected virtual string GetControlKey()
128
+ {
129
+ if (!string.IsNullOrEmpty(row.ControlKey))
130
+ return row.ControlKey;
131
+ else if (row.ActionReference != null &&
132
+ GetKeyName(row.ActionReference) is string keyName &&
133
+ keyName != UnboundName)
134
+ return keyName;
135
+ else
136
+ return null;
137
+ }
138
+
139
+ /// <summary>
140
+ ///
141
+ /// </summary>
142
+ /// <param name="action"></param>
143
+ /// <returns></returns>
144
+ protected virtual string GetKeyName(InputAction action)
145
+ {
146
+ if (!ServiceLocator.HasService(out IInputManager inputManager))
147
+ return UnboundName;
148
+
149
+ string currentControlScheme = inputManager.GetCurrentScheme();
150
+
151
+ int bindingIndex = action.GetBindingIndex(group: currentControlScheme);
152
+
153
+ if (bindingIndex == -1)
154
+ bindingIndex = GetGlobalBindingIndex(action);
155
+
156
+ if (bindingIndex == -1)
157
+ return UnboundName;
158
+ else if(action.bindings[bindingIndex].isPartOfComposite &&
159
+ bindingIndex - 1 >= 0)
160
+ return action.bindings[bindingIndex - 1].name;
161
+ else
162
+ return action.GetBindingDisplayString(bindingIndex, InputBinding.DisplayStringOptions.DontUseShortDisplayNames);
163
+ }
164
+
165
+ /// <summary>
166
+ ///
167
+ /// </summary>
168
+ /// <param name="action"></param>
169
+ /// <returns></returns>
170
+ private int GetGlobalBindingIndex(InputAction action)
171
+ {
172
+ for (int i = 0; i < action.bindings.Count; i++)
173
+ if (action.bindings[i].isComposite)
174
+ continue;
175
+ else if (string.IsNullOrEmpty(action.bindings[i].groups))
176
+ return i;
177
+
178
+ return -1;
179
+ }
180
+
181
+ /// <summary>
182
+ ///
183
+ /// </summary>
184
+ /// <param name="keyName"></param>
185
+ /// <returns></returns>
186
+ protected virtual string FilterBindingName(string keyName)
187
+ {
188
+ foreach(var replaceGroup in filterGroups)
189
+ if (replaceGroup.Split("/") is string[] replacePair && replacePair.Length > 1)
190
+ keyName = keyName.Replace(replacePair[0], replacePair[1]);
191
+
192
+ return keyName;
193
+ }
194
+
195
+
196
+ /// <summary>
197
+ ///
198
+ /// </summary>
199
+ protected virtual void PopulateDescription() => PopulateText(controlName, row.ControlName);
200
+
201
+
202
+ /// <summary>
203
+ ///
204
+ /// </summary>
205
+ protected virtual void PopulateImages()
206
+ {
207
+ PopulateImage(left, row.Left);
208
+
209
+ PopulateImage(center, row.Center);
210
+
211
+ PopulateImage(right, row.Right);
212
+ }
213
+
214
+ /// <summary>
215
+ ///
216
+ /// </summary>
217
+ /// <param name="imageComponent"></param>
218
+ /// <param name="sprite"></param>
219
+ protected virtual void PopulateImage(Image imageComponent, Sprite sprite)
220
+ {
221
+ if (imageComponent != null)
222
+ imageComponent.sprite = sprite;
223
+ }
224
+
225
+
226
+ /// <summary>
227
+ ///
228
+ /// </summary>
229
+ /// <param name="textComponent"></param>
230
+ /// <param name="text"></param>
231
+ protected virtual void PopulateText(TextMeshProUGUI textComponent, string text)
232
+ {
233
+ if (textComponent != null)
234
+ textComponent.text = text;
235
+ }
236
+
237
+
238
+ /// <summary>
239
+ ///
240
+ /// </summary>
241
+ protected virtual void DisplayActiveSprites() => ImageUtility.SetActiveBySprite(left, center, right);
242
+ }
243
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 37f0be7c6c7a5f04cb8600665ee6bf71
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,80 @@
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using UnityEngine;
3
+
4
+ namespace DREditor.UI.UIControls
5
+ {
6
+ /// <summary>
7
+ ///
8
+ /// </summary>
9
+ public abstract class ControlsUITab : MonoBehaviour
10
+ {
11
+ /// <summary>
12
+ ///
13
+ /// </summary>
14
+ [Tooltip("")]
15
+ [SerializeField] protected GameObject[] activeTabObjects;
16
+
17
+ /// <summary>
18
+ ///
19
+ /// </summary>
20
+ [Tooltip("")]
21
+ [SerializeField] protected GameObject[] inactiveTabObjects;
22
+
23
+
24
+ /// <summary>
25
+ ///
26
+ /// </summary>
27
+ protected IControlsUIPanel activePanel;
28
+
29
+
30
+ /// <summary>
31
+ ///
32
+ /// </summary>
33
+ /// <param name="active"></param>
34
+ public virtual void Display(bool active, IControlsUIPanel activePanel)
35
+ {
36
+ this.activePanel = activePanel;
37
+
38
+ if (FailedVerification())
39
+ return;
40
+
41
+ SetTabObjectStates(active);
42
+
43
+ if (active)
44
+ DisplayActive();
45
+ else
46
+ DisplayInactive();
47
+ }
48
+
49
+ /// <summary>
50
+ ///
51
+ /// </summary>
52
+ /// <returns></returns>
53
+ protected abstract bool FailedVerification();
54
+
55
+ /// <summary>
56
+ ///
57
+ /// </summary>
58
+ /// <param name="active"></param>
59
+ protected virtual void SetTabObjectStates(bool active)
60
+ {
61
+ foreach (var tabObject in activeTabObjects)
62
+ if (tabObject != null)
63
+ tabObject.SetActive(active);
64
+
65
+ foreach (var tabObject in inactiveTabObjects)
66
+ if (tabObject != null)
67
+ tabObject.SetActive(!active);
68
+ }
69
+
70
+ /// <summary>
71
+ ///
72
+ /// </summary>
73
+ protected abstract void DisplayActive();
74
+
75
+ /// <summary>
76
+ ///
77
+ /// </summary>
78
+ protected abstract void DisplayInactive();
79
+ }
80
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: b3978bdfc98c74a4c83d51b03895537a
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,42 @@
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using UnityEngine;
3
+ using UnityEngine.InputSystem;
4
+
5
+ namespace DREditor.UI.UIControls
6
+ {
7
+ /// <summary>
8
+ ///
9
+ /// </summary>
10
+ public interface IControlRowData
11
+ {
12
+ /// <summary>
13
+ ///
14
+ /// </summary>
15
+ Sprite Left { get; }
16
+
17
+ /// <summary>
18
+ ///
19
+ /// </summary>
20
+ Sprite Center { get; }
21
+
22
+ /// <summary>
23
+ ///
24
+ /// </summary>
25
+ Sprite Right { get; }
26
+
27
+ /// <summary>
28
+ ///
29
+ /// </summary>
30
+ InputActionReference ActionReference { get; }
31
+
32
+ /// <summary>
33
+ ///
34
+ /// </summary>
35
+ string ControlKey { get; }
36
+
37
+ /// <summary>
38
+ ///
39
+ /// </summary>
40
+ string ControlName { get; }
41
+ }
42
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: aa5875cb3a36a5e4ab02a793328b83f8
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,25 @@
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+
3
+ namespace DREditor.UI.UIControls
4
+ {
5
+ /// <summary>
6
+ ///
7
+ /// </summary>
8
+ public interface IControlsUIPanel
9
+ {
10
+ /// <summary>
11
+ ///
12
+ /// </summary>
13
+ string Title { get; }
14
+
15
+ /// <summary>
16
+ ///
17
+ /// </summary>
18
+ IControlRowData[] Rows { get; }
19
+
20
+ /// <summary>
21
+ ///
22
+ /// </summary>
23
+ string SystemDescription { get; }
24
+ }
25
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: bc6ae6cd26399e64ea593479ab88619a
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,17 @@
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+
3
+ namespace DREditor.UI.UIControls
4
+ {
5
+ /// <summary>
6
+ ///
7
+ /// </summary>
8
+ public interface IControlsUIRepository
9
+ {
10
+ /// <summary>
11
+ ///
12
+ /// </summary>
13
+ /// <param name="id"></param>
14
+ /// <returns></returns>
15
+ IControlsUIPanel GetPanel(string id);
16
+ }
17
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 18c88fd2c4a514c45bf06212e62fe135
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,16 @@
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+
3
+ namespace DREditor.UI.UIControls
4
+ {
5
+ /// <summary>
6
+ ///
7
+ /// </summary>
8
+ public interface IControlsUIRow
9
+ {
10
+ /// <summary>
11
+ ///
12
+ /// </summary>
13
+ /// <param name="row"></param>
14
+ void DisplayRow(IControlRowData row);
15
+ }
16
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: f5bd2c85f0dd51c42aba1d15b60a3d03
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,85 @@
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using System.Collections.Generic;
3
+ using UnityEngine;
4
+
5
+ namespace DREditor.UI.UIControls
6
+ {
7
+ /// <summary>
8
+ ///
9
+ /// </summary>
10
+ [ClassHeader(nameof(ControlsUITab) +
11
+ "\n\n")]
12
+ public class KeysUITab : ControlsUITab
13
+ {
14
+ /// <summary>
15
+ ///
16
+ /// </summary>
17
+ [Tooltip("")]
18
+ [SerializeField] protected Transform rowParent;
19
+
20
+ /// <summary>
21
+ ///
22
+ /// </summary>
23
+ [Tooltip("")]
24
+ [SerializeField] protected GameObject rowPrefab;
25
+
26
+ /// <summary>
27
+ ///
28
+ /// </summary>
29
+ [Tooltip("")]
30
+ [SerializeField] protected List<GameObject> controlRows;
31
+
32
+
33
+ /// <inheritdoc/>
34
+ protected override bool FailedVerification()
35
+ {
36
+ bool result = rowPrefab == null && (controlRows.Count == 0 || controlRows[0] == null);
37
+
38
+ if (result)
39
+ UnityEngine.Debug.LogWarning($"ALERT: Could not display: {nameof(KeysUITab)} because it's control rows " +
40
+ $"were either empty or the filled out rows are null.");
41
+
42
+ return result;
43
+ }
44
+
45
+ /// <inheritdoc/>
46
+ protected override void DisplayActive() => DisplayRows();
47
+
48
+ /// <inheritdoc/>
49
+ protected override void DisplayInactive() { }
50
+
51
+ /// <summary>
52
+ ///
53
+ /// </summary>
54
+ protected virtual void DisplayRows()
55
+ {
56
+ foreach(GameObject row in controlRows)
57
+ if (row != null)
58
+ Destroy(row);
59
+
60
+ controlRows.Clear();
61
+
62
+ for (int i = 0; i < activePanel.Rows.Length; i++)
63
+ controlRows.Add(Instantiate(rowPrefab, rowParent));
64
+
65
+ for (int i = 0; i < activePanel.Rows.Length; i++)
66
+ if (i >= activePanel.Rows.Length)
67
+ controlRows[i].SetActive(false);
68
+ else
69
+ DisplayRow(controlRows[i].transform, i);
70
+ }
71
+
72
+ /// <summary>
73
+ ///
74
+ /// </summary>
75
+ /// <param name="rowTransform"></param>
76
+ /// <param name="i"></param>
77
+ protected virtual void DisplayRow(Transform rowTransform, int i)
78
+ {
79
+ rowTransform.gameObject.SetActive(true);
80
+
81
+ if (rowTransform.TryGetComponent(out IControlsUIRow row))
82
+ row.DisplayRow(activePanel.Rows[i]);
83
+ }
84
+ }
85
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 210cc34289fdc6942865ef042dbe8efb
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant: