From 9e95ebf845ec7bc0841312d9e4067e96c7542a3e Mon Sep 17 00:00:00 2001 From: ericoporto Date: Sun, 7 Jun 2020 14:42:49 -0300 Subject: [PATCH] updates AgsImGui demo to include basic themeing --- agsimgui_demo/Game.agf | 65 +++-- .../ags_packages_cache/package_index | 275 ++++++++++++++++++ .../ags_packages_cache/timer/timer.scm | Bin 0 -> 18521 bytes agsimgui_demo/room1.crm | Bin 94909 -> 95023 bytes agsimgui_demo/room2.crm | Bin 472793 -> 472907 bytes agsimgui_demo/room3.asc | 6 + agsimgui_demo/room3.crm | Bin 67907 -> 68704 bytes agsimgui_demo/room4.asc | 95 ++++++ agsimgui_demo/room4.crm | Bin 0 -> 74427 bytes 9 files changed, 411 insertions(+), 30 deletions(-) create mode 100644 agsimgui_demo/ags_packages_cache/package_index create mode 100644 agsimgui_demo/ags_packages_cache/timer/timer.scm create mode 100644 agsimgui_demo/room4.asc create mode 100644 agsimgui_demo/room4.crm diff --git a/agsimgui_demo/Game.agf b/agsimgui_demo/Game.agf index 1c489cc..b0ae527 100644 --- a/agsimgui_demo/Game.agf +++ b/agsimgui_demo/Game.agf @@ -1,6 +1,6 @@ - + agsimgui_demo @@ -43,7 +43,7 @@ True False True - -1 + 0 No 0 0 @@ -659,6 +659,10 @@ 3 + + 4 + + @@ -4473,49 +4477,49 @@ 2000 False 0 - -1 + 0 1 2001 False 0 - -1 + 0 2 2002 False 0 - -1 + 0 3 2003 False 0 - -1 + 0 4 2004 False 0 - -1 + 0 5 2005 False 0 - -1 + 0 6 2006 False 0 - -1 + 0 @@ -4528,49 +4532,49 @@ 2010 False 0 - -1 + 0 1 2011 False 0 - -1 + 0 2 2012 False 0 - -1 + 0 3 2013 False 0 - -1 + 0 4 2014 False 0 - -1 + 0 5 2015 False 0 - -1 + 0 6 2016 False 0 - -1 + 0 @@ -4583,49 +4587,49 @@ 2020 False 0 - -1 + 0 1 2021 False 0 - -1 + 0 2 2022 False 0 - -1 + 0 3 2023 False 0 - -1 + 0 4 2024 False 0 - -1 + 0 5 2025 False 0 - -1 + 0 6 2026 False 0 - -1 + 0 @@ -4638,49 +4642,49 @@ 2030 False 0 - -1 + 0 1 2031 False 0 - -1 + 0 2 2032 False 0 - -1 + 0 3 2033 False 0 - -1 + 0 4 2034 False 0 - -1 + 0 5 2035 False 0 - -1 + 0 6 2036 False 0 - -1 + 0 @@ -4834,6 +4838,7 @@ See KeyboardMovement.txt for details. + diff --git a/agsimgui_demo/ags_packages_cache/package_index b/agsimgui_demo/ags_packages_cache/package_index new file mode 100644 index 0000000..7f58c34 --- /dev/null +++ b/agsimgui_demo/ags_packages_cache/package_index @@ -0,0 +1,275 @@ +[{ + "id": "tween", + "name": "Tween", + "text": "The AGS Tween Module allows you to programmatically interpolate many of the AGS properties (objects, characters, regions, viewport, audio, gui, gui controls, etc.) over time in amazing ways. The term tween comes from 'inbetweening'. It's typically used in Adobe Flash to indicate interpolation of an object from one keyframe to another.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=51820.0", + "version": "2.1.0", + "author": "Edmundito" +}, { + "id": "backgroundspeech", + "name": "Background Speech", + "text": "An easy way to get a character to say something in the background, while animating a speech view and playing a voice clip.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=35787.0", + "version": "1.1.0", + "author": "Electroshokker" +}, { + "id": "altkeyboardmovement", + "name": "Alternative Keyboard Movement", + "text": "A replacement for the Keyboard Movement module included in the Default Game Template.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=42843.0", + "original_download": "https://mega.nz/#!JBZgyBKZ!QfNt-W7GSXtO8dXbYvGPiQ87Jxf125LQ0sCu8UnHtNA", + "version": "0.3.0", + "author": "Khris" +}, { + "id": "smoothscrollingandparallax", + "name": "Smooth Scrolling and Parallax", + "text": "Adds independent Smooth Scrolling camera and parallax effect on room objects.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=33142.0", + "version": "1.7.1", + "author": "Ali" +}, { + "id": "speechbubble", + "name": "SpeechBubble", + "text": "A module to do comic book-style speech bubbles. SpeechBubble is an alternative to Phylactere, because the older module doesn't work properly with 32-bit color.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=55542.0", + "version": "0.8.0", + "author": "Snarky" +}, { + "id": "hinthighlighting", + "name": "Hint Highlighting", + "text": "Adds an overlay which highlights all the visible and clickable objects, hotspots and charactes, to avoid pixel hunting and need of hints.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=56463.0", + "version": "2.2.0", + "author": "artium" +}, { + "id": "doubleclick", + "name": "DoubleClick", + "text": "AGS does not have built-in mouse double-click events. DoubleClick module solves this by detecting when player made two consecutive clicks within short duration.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=53226.0", + "version": "1.0.0", + "author": "Crimson Wizard" +}, { + "id": "keylistener", + "name": "KeyListener", + "text": "KeyListener is a more sophisticated script module, that keeps track and record of the particular key and mouse button states in your game. Since AGS is limited in which key and mouse events it reports to the script, this module may be a useful workaround.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=53226.0", + "version": "0.9.7", + "author": "Crimson Wizard" +}, { + "id": "totallipsync", + "name": "TotalLipSync", + "text": "TotalLipSync is a module for voice-based lip sync. It allows you to play back speech animations that have been synchronized with voice clips. TotalLipSync has all the same capabilities as the voice-based lip sync that is built into AGS, and offers the following additional advantage.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=54722.0", + "version": "0.5.0", + "author": "Snarky" +}, { + "id": "fakescreen", + "name": "FakeScreen", + "text": "FakeScreen draws a sprite with the objects, character and room on a drawing surface.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=38592.0", + "version": "1.0.0", + "author": "Kweepa" +}, { + "id": "underwater", + "name": "Underwater", + "text": "Underwater distorts a background in a wibbly wavy way.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=38592.0", + "version": "1.1.0", + "author": "Kweepa", + "depends": "fakescreen" +}, { + "id": "easymirrors", + "name": "Easy Mirrors", + "text": "This allow you to create small mirrors in your game very quickly.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=48641.0", + "version": "2.0.0", + "author": "Monsieur OUXX" +}, { + "id": "daynightcycle", + "name": "Day Night Cycle", + "text": "This module for having dynamic time in your game, with day/night-cycles and seasons. The module takes care of the timekeeping and working out what that means in terms of time-of-day, season, etc.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=49791.0", + "version": "1.2.0", + "author": "Snarky" +}, { + "id": "animobjs", + "name": "animObjs", + "text": "animObjs moves groups of objects around with one function.", + "github": "https://github.com/QCPolmer/animObjs", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=56038.0", + "version": "1.0.0", + "author": "QCPolmer" +}, { + "id": "description", + "name": "Description", + "text": "Description display hotspot description.", + "github": "https://github.com/QCPolmer/animObjs", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=26306.0", + "version": "1.6.0", + "author": "SSH" +}, { + "id": "drawantialiased", + "name": "DrawAntialiased", + "text": "DrawAntialiased allows you to draw antialiased lines and circles on a drawing surface.", + "demo": "http://www.kweepa.org/step/ags/tech/RopeTest.zip", + "original_download": "http://www.kweepa.org/step/ags/tech/DrawAntialiased.zip", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=39846.0", + "version": "1.1.0", + "author": "Kweepa" +}, { + "id": "dragdrop", + "name": "DragDrop", + "text": "DragDrop implements abstract drag-and-drop functionality.", + "demo": "https://bitbucket.org/ivan-mogilko/ags-script-demos/downloads/DragDropDemo_1.0.0.zip", + "original_download": "https://bitbucket.org/ivan-mogilko/ags-script-modules/downloads/DragDrop_1.0.0.scm", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=53332.0", + "version": "1.0.0", + "author": "Crimson Wizard" +}, { + "id": "dragdropcommon", + "name": "DragDropCommon", + "text": "DragDrop implements drag-and-drop for built-in AGS objects such as characters, room-objects.", + "demo": "https://bitbucket.org/ivan-mogilko/ags-script-demos/downloads/DragDropDemo_1.0.0.zip", + "original_download": "https://bitbucket.org/ivan-mogilko/ags-script-modules/downloads/DragDropCommon_1.0.0.scm", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=53332.0", + "version": "1.0.0", + "author": "Crimson Wizard", + "depends": "dragdrop" +}, { + "id": "textfield", + "name": "TextField", + "text": "TextField", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=55915.0", + "version": "1.2.0", + "author": "Snarky" +}, { + "id": "multiresponse", + "name": "MultiResponse", + "text": "MultiResponse", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=27947.0", + "version": "1.2.0", + "author": "SSH" +}, { + "id": "credits", + "name": "Credits", + "text": "Credits", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=28659.0", + "version": "1.19.0", + "author": "SSH" +}, { + "id": "typedtext", + "name": "TypedText", + "text": "TypedText", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=54450.0", + "version": "0.7.0", + "author": "Crimson Wizard" +}, { + "id": "caterpillar", + "name": "Caterpillar", + "text": "Caterpillar to follow the player from behind.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=44845.0", + "version": "0.1.0", + "author": "Daniel Eakins" +}, { + "id": "timer", + "name": "Timer", + "text": "Timer module.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=55545.0", + "version": "0.9.0", + "author": "Crimson Wizard" +}, { + "id": "magnifier", + "name": "Magnifier", + "text": "Magnifier module.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=37548.0", + "version": "1.0.0", + "author": "monkey0506" +}, { + "id": "inifile2", + "name": "IniFile2", + "text": "IniFile 2 module for reading .ini files, read and write configuration files.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=46631.0", + "version": "1.0.0", + "author": "Wyz" +}, { + "id": "displaybasedgui", + "name": "Display-based GUI", + "text": "Creates a GUI using display.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=55331.0", + "version": "1.0.0", + "author": "Monsieur OUXX" +}, { + "id": "adventurejoy", + "name": "adventureJoy", + "text": "Joystick for BASS Template.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=55235.0", + "version": "0.1.0", + "author": "eri0o" +}, { + "id": "timero", + "name": "Timer", + "text": "Timer module.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=28979.0", + "version": "3.1.0", + "author": "monkey0506" +}, { + "id": "normrnd", + "name": "NormRnd", + "text": "Standard normal random number.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=55133.0", + "version": "0.1.0", + "author": "eri0o" +}, { + "id": "queuedspeech", + "name": "QueuedSpeech", + "text": "Provides queue for enabling queuing speech", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=23806.0", + "version": "4.1.0", + "author": "monkey0506" +}, { + "id": "stack", + "name": "Stack", + "text": "Vectorized Stacks", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=37232.0", + "author": "monkey0506" +}, { + "id": "shash", + "name": "sHash", + "text": "provides hash objects", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=54749.0", + "author": "QCPolmer" +}, { + "id": "slist", + "name": "sList", + "text": "provides list objects", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=54749.0", + "author": "QCPolmer" +}, { + "id": "shadow", + "name": "Shadow", + "text": "adds shadow", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=28905.0", + "author": "SSH" +}, { + "id": "chatdisplay", + "name": "ChatDisplay", + "text": "WhatsApp like dialog chat display.", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=54557.0", + "author": "Khris" +}, { + "id": "lake", + "name": "Lake", + "text": "Lake water", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=27356.0", + "original_download": "http://shatten.sonores.de/wp-content/uploads/2017/01/LakeModule14.zip", + "version": "1.4.0", + "author": "Kweepa" +}, { + "id": "customdialoggui", + "name": "Custom Dialog GUI", + "text": "Custom Dialog GUI, easy to use interface to AGS DialogOptionsRendering", + "forum": "https://www.adventuregamestudio.co.uk/forums/index.php?topic=36313.0", + "original_download": "http://shatten.sonores.de/wp-content/uploads/2017/01/CustomDialogGui_17.zip", + "version": "1.7.0", + "author": "abstauber" +}] \ No newline at end of file diff --git a/agsimgui_demo/ags_packages_cache/timer/timer.scm b/agsimgui_demo/ags_packages_cache/timer/timer.scm new file mode 100644 index 0000000000000000000000000000000000000000..52ae21640a96de373494a175f7ba4ff6fe3fe0c3 GIT binary patch literal 18521 zcmd^HTW=djme#%+@cTYiv_O_}C`t}yu^4B(04-5AcO+6Esd$WFz-^I5spDoh(cP4y znaup2c^>S;{nceFC-<|iI@zqf-Q-CId$sXZ>9Fz;c$|Mi~KB^E+f11Pdht1 z-J2jbXUSC_TVVs+J znB~Don>~N_FX1en+L;-3dmqLpr~UQ_*Ki?>ZRHx_9=^mK8&AX8^JmYW9UQ!Vx-Wv` zf76X~o5sL*8stICUw*oUUe{O2h2W{3+0@1pn>9^r?G&W7b5b#wHX5Th1@ROt2)glO&#I;F1ZE82a!W{D!w??=_$O_~AwFN4v0Sd7BRQhOekq~>HxhDGQKasrgbRp ziEibAUUG|PwkIMdVLUxatsO>5-T?6+HN2F8xHDW7#X zhxuJ(K`#CddJ4G-tThJc*CwPA7%{-Du?L0g{@2P~E&{-~>3*x+Q~2^87pmQv)5dRn z%ia*$EQm5Hw8z3314_@zMX&uEUP_Z>j>{qs9uUpRsSR%6Dh7HRHVKwzm?sN>-oDsy zp)OovW3Oq%;^+qx#8Yr5Th6Us5K$}KMd3u@0V3RKTd=#NbM?a*Wr8sVPJOq}HAI=HcB_piGv(o1!#Ve}$HZCj3i&1iq8`$>#=ZILDmo8}>eYicUPKH(Qfjeve>@PL?i3UR)!jk|CG%rv)m3gV^({_yjTtCYqW*-!O6oD zJsovZ=Qf^}x(@1t)Gapiv+3(rdx*Z}HYqlhl&MDFZYB=!aotg0=her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LRC+Z8I& delta 142 zcmZ4gjCJo*)`l&NF>y?rg{H^FF*-55V4l7xj!}u}HS_diag1$D-n5Ua1GHzn@p8hhCaW|%7ENuV) diff --git a/agsimgui_demo/room2.crm b/agsimgui_demo/room2.crm index e167913ce7bc0c69a88632487db651f50f67bc63..448eedf7982edc496bca6db335e16536ddb1d573 100644 GIT binary patch delta 302 zcmXYsJ4*vm6oft3n~dl}6ayR0=79kpXr+RU1hI&fD5i-Z7!)mIXgZyX3<^5oD;r z9&F3X0IEbc{5ptnwW_%*ii%p(d=y2&D>`;ipfc|`SfH~%2R}K;(YgP!IUPfu%5oCJ z2(>YrTXBTxlE33fQIqWiQhx4i0z+y^b3Or=Zre%oNtpjzT1lJ+=)PGTMvz=7O<*)w aU*2MO3f*!wi3rtWJ-)i54yjCgtA7DX;aM;M delta 294 zcmXYqze~el5Qe$?Y+sQ`6$??DG$jR7&@I6tND+}Z=+rJ9i-Thw9UScNA>Hicjk@Ws z@cjX93hw@(qli!uS`Zg8u`b7ZFV8)9|KU6ioQ@{VTImU$(b*f+EFM&3!$Qn&O1c*I zd8o{%g*~Q{G;(P0kCLk#UMV!EGngX^#N<&mPqTPo3QV%xGWq7n#v!HfXdW?zlEAj9 zFQ7{l%kv_Zd8A~rfD`^w(kq~yJUVmGCRYv|Y*X}iArB6kw3=47)LgX4HRmn@8e_Kf zi^$WO42vjJRcsIC)VuD%=XWJ74|lXPHf@%m|Fh|raFLR diff --git a/agsimgui_demo/room3.asc b/agsimgui_demo/room3.asc index 5e1347f..6ab5d85 100644 --- a/agsimgui_demo/room3.asc +++ b/agsimgui_demo/room3.asc @@ -26,6 +26,12 @@ void SayB(this Character*, String text){ function room_RepExec() { AgsImGui.NewFrame(); + + AgsImGui.SetNextWindowPos(16, 16, ImGuiCond_Always); + AgsImGui.BeginWindow("Level Selector",false, eImGuiWindowFlags_NoTitleBar); + if(AgsImGui.Button("Go To Next Level")) player.ChangeRoom(4, 160, 160, eDirectionDown); + AgsImGui.EndWindow(); + AgsImGui.BeginWindow("My own window"); AgsImGui.Text("Talk and inspect things in the room."); diff --git a/agsimgui_demo/room3.crm b/agsimgui_demo/room3.crm index 23120f57888d7cee5cf141a7aefdd530f4dddbe7..6b46638317e256b1ef887536c73b163ab895b9e8 100644 GIT binary patch delta 1567 zcmZ|Pe@q)?7zglsj%!QVOxhe$gkcY_9qN$4n1RF*VUUa=KiV;(Kn7N5 z@B8+7?|H9Zot0+Cq));(i;AiQ^RKh9qpb&5xmH1V&n5`(h~v?l|5~ETw(-%KF}t%} z5`c73jbxz&{7qj9zL^d@6=V5M>> z0V~G3>3tqa$mw^9r)Oopobr^EA&=<-N;d0?h#NJk+>nyFR?nv%Zqr>HN|cLv#K+#^UgGn!75wR) zLK@}iJ2h0r({n2Oe#zz8q{OFm2RF}qXtx<1ogbz>Z2w)O8l$w5?9ys8HWJv_2s;+@ zojqCG*qh!)J=JZ|Y5(F{r@u{Z=izwamfe2b=(c#ty!UjPKU;W`>diZs{gsVo)R$FA z6GxLS=YEuK^r6MFcKn)oWO0fPu>X%KYT?p9r|1b@z4oj3 zI5-f|UJ&+c${|f@4-Q8ZGc*47>KURVtlm|vQVw1cH{HE<@(nzI=inkt!c~}oIY>bs zegS0I0bZzp8rTO1;5fVqAHnyq3{ISfLQr7<&ceHJ0X~EY_!*WY;iNz~9{ErLk3cOn zKtH?!3?IYSa2r;@g~n9CqwpM@feUa6Cg4lB4$}~a1gwCJE);Y&MnBh-P5!|*JG z;bj3+;G{c;y2Pk280)oC-sEc*k_o@R z=6|tsRw|B7Sm`mb#S&YvlH7%3OL-=GSDod+L|@ZYPN>`@9`$);CFXkp68r%pL+&xXgV7-k1P73 zLyIKw%g@Q%T7;G^Op<2Kl%#68&DA%qb;ZwWyY}{m-sqVjNmk6`PqKrBpLpZA$EV>A zZv_AG*yYg~Jn$uoUw8}@;E>16`+WwQ!<9ZWukaek!sN3}^vTNG-*CEr9ve`ze~-?<W!a9M`Xs z?fNrnuQ@GCQZ3X&12n-Mcmz+O9|91A%4fl0I13lx8uY+8grWAz^@;{7?0`}@2It@+ z+=RRE5W3*AMykP8k)&8igKba-=b;I1LofV>*?8$Fu)<J5?W!JVSce|GM%Z>N-6z;yFBNHjjgvMSytt`a7BIhwjrSsIu zQb$R}k&<$Is)Wlz&b$LhOG~O!90kP{<@OW_*MQ14I;&0|cUGl3a-B|PFn7w}l7EBM RVU5M%WRhFL+|}XarN7rNR%-wN diff --git a/agsimgui_demo/room4.asc b/agsimgui_demo/room4.asc new file mode 100644 index 0000000..64dc0e2 --- /dev/null +++ b/agsimgui_demo/room4.asc @@ -0,0 +1,95 @@ +// room script file +function room_RepExec() +{ + AgsImGui.NewFrame(); //let's begin a new frame, we end it with a Render + AgsImGui.ShowDemoWindow(); //Shows a demo of everything possible + + // This is our corner GUI to help us Quit the game + AgsImGui.SetNextWindowPos(16, 16, ImGuiCond_Always); + AgsImGui.BeginWindow("Level Selector",false, eImGuiWindowFlags_NoTitleBar); + if(AgsImGui.Button("Quit Game")) AgsImGui.OpenPopup("Do you really want to Quit?"); + + if(AgsImGui.BeginPopupModal("Do you really want to Quit?",true)){ + if(AgsImGui.Button("Yes, let me go!")) QuitGame(0); + if(AgsImGui.Button("No, give me more time!")) AgsImGui.CloseCurrentPopup(); + AgsImGui.EndPopup(); + } + + AgsImGui.EndWindow(); + + AgsImGui.Render(); // This will generate drawing instructions. + // AGS will actually draw this on screen later on, on Post Screen Draw stage. +} + +ImGuiStyle* style; +void on_mouse_click (int btn){ + if(btn == eMouseWheelNorth){ + AgsImGui.DoMouseWheel(eImGuiDir_Down); + } else if(btn == eMouseWheelSouth){ + AgsImGui.DoMouseWheel(eImGuiDir_Up); + } +} +function room_Load() +{ + Game.Camera.Width = 320; + Game.Camera.Height = 200; + Screen.Viewport.Width = 960; + Screen.Viewport.Height = 600; + + ImVec4* white = ImVec4.Create(1.00, 1.00, 1.00, 1.00); + ImVec4* transparent = ImVec4.Create(0.00, 0.00, 0.00, 0.00); + ImVec4* dark = ImVec4.Create(0.00, 0.00, 0.00, 0.20); + ImVec4* darker = ImVec4.Create(0.00, 0.00, 0.00, 0.50); + + ImVec4* background = ImVec4.Create(0.95, 0.95, 0.95, 1.00); + ImVec4* text = ImVec4.Create(0.10, 0.10, 0.10, 1.00); + ImVec4* border = ImVec4.Create(0.64, 0.60, 0.60, 1.00); + ImVec4* grab = ImVec4.Create(0.69, 0.69, 0.69, 1.00); + ImVec4* header = ImVec4.Create(0.86, 0.86, 0.86, 1.00); + ImVec4* active = ImVec4.Create(0.90, 0.47, 0.64, 1.00); + ImVec4* hover = ImVec4.Create(0.40, 0.87, 0.84, 0.20); + + AgsImGui.StyleColorsLight(); + + style = AgsImGui.GetStyle(); + + style.Colors[eImGuiCol_Text] = text; + style.Colors[eImGuiCol_WindowBg] = background; + style.Colors[eImGuiCol_ChildBg] = background; + style.Colors[eImGuiCol_PopupBg] = white; + + style.Colors[eImGuiCol_Border] = border; + style.Colors[eImGuiCol_BorderShadow] = transparent; + + style.Colors[eImGuiCol_Button] = header; + style.Colors[eImGuiCol_ButtonHovered] = hover; + style.Colors[eImGuiCol_ButtonActive] = active; + + style.Colors[eImGuiCol_FrameBg] = white; + style.Colors[eImGuiCol_FrameBgHovered] = hover; + style.Colors[eImGuiCol_FrameBgActive] = active; + + style.Colors[eImGuiCol_MenuBarBg] = header; + style.Colors[eImGuiCol_Header] = header; + style.Colors[eImGuiCol_HeaderHovered] = hover; + style.Colors[eImGuiCol_HeaderActive] = active; + + style.Colors[eImGuiCol_CheckMark] = text; + style.Colors[eImGuiCol_SliderGrab] = grab; + style.Colors[eImGuiCol_SliderGrabActive] = darker; + + style.Colors[eImGuiCol_ScrollbarBg] = header; + style.Colors[eImGuiCol_ScrollbarGrab] = grab; + style.Colors[eImGuiCol_ScrollbarGrabHovered] = dark; + style.Colors[eImGuiCol_ScrollbarGrabActive] = darker; + + AgsImGui.SetStyle(style); +} + +function room_AfterFadeIn() +{ + Display("This is the same demo we saw in Room 1."); + Display("But now we Themed Dear ImGui!"); + Display("You can use myStyle = AgsImGui.GetStyle(); to get the Style.[ Apply it back with AgsImGui.SetStyle( myStyle ); once you are done!"); + Display("Themeing can be handy if you want to use Dear ImGui for gameplay purposes."); +} diff --git a/agsimgui_demo/room4.crm b/agsimgui_demo/room4.crm new file mode 100644 index 0000000000000000000000000000000000000000..56d7af60046a78cf5f2af737bb831da4c1dd5267 GIT binary patch literal 74427 zcmeHOU2Gg#RzBTsw|~=dx4X;L)z#J2KmLs!x4Ugm>}7V7NivztB$;dyCL3mm<*_TV zS=(*d?a73f8Ai(k5{LnT1nfQ_u`D3*fW!kJBtSeM7|ppPBY&X8f61f94r~=8Qix#}Jy6mIJw|K&}$VRRg){ zKyD_Gn+@ci3FOWMase!r0G3JsOC^A%62MXkV5tPKR03Ek0W6gOmP!CiHGriWz)}rh zsRpoA16Zm7EY$#(Y5+?$fTbG1G9AD&9l$ajz%m`cG9AD&9l$ajz%m`cG9AD&J;&l% zX$Yq5&$x}Se0?vP?;&0jb_eeqnUHrXy#lt znmLz^X3k}!nRD4_=3F+KIhT!QE`Y^Ttg7=A+sp;9c#3V-1+aLEZPo>_c#3V-1+aLE zRdt?Xo4Eilo?@GI0bV@CHtPbsc#3V-1$glk+pG)l;we_ud5Uf30=#&NZPo>N@f6#v z3-ID8wpkb8WqJ;RrR((bh%P@J=Cl`NSi0`DRjaKpT&XQClbgEXY+iiRS@JUH?$w>G z=NFfq%NsmZ-?Ivg+9SyPBHiB`$zxy_&=g|Ly!CWMLtzN z`PKW|C!f62k8BUyvZ#Yx+{~EJT*q4)8iB=4b%8!nI>muX=tKMv7s3<$7hMG z3h9PPre)JaWtQyGG8IQBC^J|ltyrdP=@iB7GFkZ&b@msjuV1Hle~RLI5q*l(pGwn- zll_#;3}GCL($)wi2Tam4MGALnxZ9+qEu_=9=P4XbQc^=csu4w!FpW&prdXdriKI>4 zy*hREW+~d0hFKJfB&auLz_Qd6D^L_;hNEffOBB#2M-hw{!B}C8W#?O>-XPu} zu|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