Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model View ViewModel (MVVM) #56

Draft
wants to merge 210 commits into
base: development
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
54ebc0a
Added boilerplate code for debugging blocks
Jacob-Mango Jan 20, 2021
6e0691e
Added UI to Debugger
InclementDab Jan 20, 2021
f764e2d
debugger cleanup
InclementDab Jan 20, 2021
c0a4502
Added CF_DEBUGGER define
Jacob-Mango Jan 20, 2021
10d67ad
Linked the controller to code
Jacob-Mango Jan 20, 2021
374a2dc
Renamed methods to make more sense
Jacob-Mango Jan 20, 2021
f31f279
Added display class
Jacob-Mango Jan 20, 2021
b00d88f
Fixed observabledictionaries for use with debugger
Jacob-Mango Jan 20, 2021
294d1af
Debugger only enabled when $profile:CF_Debugger.txt is found
Jacob-Mango Jan 20, 2021
c46c2f3
changes to observabledictionary
Jacob-Mango Feb 13, 2021
2cf298f
compile error fixes
Jacob-Mango Feb 13, 2021
cab1764
Crash fix
Jacob-Mango Feb 14, 2021
c3a2da3
Moved to MultilineTextWidget
Jacob-Mango Feb 23, 2021
f7fd1d5
renamed to CF_DebugUI, made it only 1 multiline text widget
Jacob-Mango Mar 14, 2021
d15a0d4
added more documentation
Jacob-Mango Mar 14, 2021
852955e
Merge branch 'production' into feature/debugger
InclementDab May 3, 2021
5e933cc
formatting tweaks
Jacob-Mango May 21, 2021
5d98133
Moved back to scripts.pbo
Jacob-Mango Jun 14, 2021
1306b06
rewrite
Jacob-Mango Jun 14, 2021
831b2f6
Removed MVC
Jacob-Mango Jun 16, 2021
70e891e
Basic implementation of the MVVM pattern
Jacob-Mango Jun 16, 2021
b5b2de5
Better codeflow for destroying viewmodels and updating properties
Jacob-Mango Jun 16, 2021
2add146
expanded on logging
Jacob-Mango Jun 17, 2021
1ee2ac6
Fixed event calling
Jacob-Mango Jun 17, 2021
1f992c7
Property conversion
Jacob-Mango Jun 17, 2021
e9a4fff
added more property converters
Jacob-Mango Jun 17, 2021
12c69ca
Small cleanup for workbench
Jacob-Mango Jun 17, 2021
23a705b
initial test for collections
Jacob-Mango Jun 19, 2021
7b7dbe0
implemented all widgets
Jacob-Mango Jun 21, 2021
3e5fbb0
Added the properties
Jacob-Mango Jun 22, 2021
0806a1f
imagine failing at compile checks
Jacob-Mango Jun 22, 2021
09829ae
preperation for observing collections
Jacob-Mango Jun 23, 2021
b39b7d8
fixed issue where CF_Event was null in model property update
Jacob-Mango Jun 23, 2021
8b718a8
Updated Test
Jacob-Mango Jun 23, 2021
e2ecf94
Type conversions, collections and naming cleanup
Jacob-Mango Jun 26, 2021
5a8d026
Html, Map, Player widgets
Jacob-Mango Jun 26, 2021
739dc13
Collection events
Jacob-Mango Jun 26, 2021
91f07de
widget property updates
Jacob-Mango Jun 26, 2021
34b9e86
hide/show events
Jacob-Mango Jun 26, 2021
d4647c0
Added stack and priority queue
Jacob-Mango Jun 27, 2021
0554192
Added an ObservableMap
Jacob-Mango Jun 27, 2021
e9e4e30
Added 'Clear'
Jacob-Mango Jun 29, 2021
2cef515
renamed event to eventargs
Jacob-Mango Jul 3, 2021
fceec05
logging
Jacob-Mango Jul 3, 2021
d5657ff
initial work on window system
Jacob-Mango Jul 3, 2021
1e51110
event args outside of linked binding
Jacob-Mango Jul 3, 2021
b206c60
widget variables in model as properties
Jacob-Mango Jul 3, 2021
98d6162
frame model fixes
Jacob-Mango Jul 3, 2021
df18308
initial docs test
Jacob-Mango Jul 3, 2021
bf0b9d6
QOL error messages
Jacob-Mango Jul 4, 2021
199348c
Moved windows to define
Jacob-Mango Jul 4, 2021
9da252d
update parent upon creation if needed
Jacob-Mango Jul 4, 2021
7614806
Initial work on a more coherent type converter
Jacob-Mango Jul 7, 2021
da17260
compile error fixes due to stale workbench load
Jacob-Mango Jul 7, 2021
351a07e
more work on type converter
Jacob-Mango Jul 7, 2021
461e6fc
Merge branch 'development' into feature/mvvm
Jacob-Mango Jul 15, 2021
cc2a5fb
initial work on removal of ViewModel - script class is the viewmodel,…
Jacob-Mango Jul 15, 2021
8ecacbf
Changed String() to ToStr()
Arkensor Jul 18, 2021
c80d81b
Compile error fix
Jacob-Mango Jul 23, 2021
fcf1bb5
restructured folders and merged modded views together
Jacob-Mango Jul 23, 2021
0ed5187
Merge branch 'development' into feature/mvvm
Jacob-Mango Jul 23, 2021
4cae6c0
Using function signature from EventHandler for MVVM based events
Jacob-Mango Jul 23, 2021
2420de5
Added default type converter for un-set properties
Jacob-Mango Jul 23, 2021
ba93d38
Default OnClick to return false
Jacob-Mango Jul 23, 2021
10a5b4a
Documentation
Jacob-Mango Jul 23, 2021
d196c94
test case collection inserting now works again
Jacob-Mango Jul 23, 2021
2e34e96
Merge branch 'development' into feature/mvvm
Jacob-Mango Jul 23, 2021
10f8fce
Support for view to create model in gameplay
Jacob-Mango Jul 24, 2021
630127d
Updated CF_Widget to use type converters
Jacob-Mango Jul 24, 2021
bc54f45
Fixed compile errors
Jacob-Mango Jul 24, 2021
991b423
Updated CF_XComboBoxWidget to use type converters
Jacob-Mango Jul 24, 2021
b3de17a
Updated CF_UIWidget to use type converters
Jacob-Mango Jul 24, 2021
6998d9c
Merge branch 'development' into feature/mvvm
Jacob-Mango Jul 24, 2021
5f8d0dd
Merge branch 'development' into feature/mvvm
Jacob-Mango Aug 2, 2021
051c2ab
Added a type converter for CF_Expression
Jacob-Mango Aug 2, 2021
0a61c04
Boiletplate for CF_Date type conversion
Jacob-Mango Aug 2, 2021
0e7d3ff
added TODO to expression type conversion
Jacob-Mango Aug 2, 2021
9940d79
- Added a type converter for CF_Localiser
Jacob-Mango Aug 2, 2021
ed36ac9
CF_Module can open itself through MVVM
Jacob-Mango Aug 2, 2021
ecafbbf
Removed CF namespace usage for related commits
Jacob-Mango Aug 2, 2021
9a30e15
- collections are assigned on property changed events
Jacob-Mango Aug 2, 2021
3fe3127
Fixed Class being destructed
Jacob-Mango Aug 2, 2021
c09e66a
support for multiple properties to be bounded to one variable
Jacob-Mango Aug 2, 2021
00c7f63
update other properties from model when view is updated
Jacob-Mango Aug 2, 2021
f644421
Clean code paths of temporary code for finalisation
Jacob-Mango Aug 3, 2021
eb57176
Removed property type map
Jacob-Mango Aug 3, 2021
2c6d2b0
CF_MVVM::Create wasn't using 'wSpace' workspace
Jacob-Mango Aug 3, 2021
307d7c2
Placed all trace calls behind a define for optimization
Jacob-Mango Aug 3, 2021
b3e6195
Moved type converter into Property for ViewModel
Jacob-Mango Aug 3, 2021
2aab4cb
Removed use of to and from variable within viewmodel type converters
Jacob-Mango Aug 3, 2021
00f97c2
Updated CF_TextWidget to use type converters
Jacob-Mango Aug 3, 2021
f012c05
Update checkbox property before change event fired
Jacob-Mango Aug 3, 2021
4e97849
Update button state property before change event fired
Jacob-Mango Aug 3, 2021
72776ba
ChangeEvent now reports What
Jacob-Mango Aug 3, 2021
cfff666
Removed collection processing from eventargs
Jacob-Mango Aug 3, 2021
5a6db4b
Properly assign the collection of property link
Jacob-Mango Aug 3, 2021
61fb701
Updated CF_CanvasWidget and CF_RichTextWidget to use type converters
Jacob-Mango Aug 3, 2021
65bf451
CF_MapWidget and CF_XComboBoxWidget no longer use references for coll…
Jacob-Mango Aug 3, 2021
e026c51
Merge branch 'feature/debugger' into feature/mvvm
Jacob-Mango Aug 4, 2021
15ee2af
Added fallback for DebugUI when the 'CF_DebugUI' function doesn't exist
Jacob-Mango Aug 4, 2021
e70dea3
Basic implementation of DebugUI
Jacob-Mango Aug 4, 2021
3c57719
Updated window management
Jacob-Mango Aug 4, 2021
a35246f
Removed handle, moved to linked list
Jacob-Mango Aug 4, 2021
7f91b54
Fixed clicking through debug ui windows
Jacob-Mango Aug 5, 2021
5d7ffd4
Fixed cursor bug
Jacob-Mango Aug 5, 2021
5cb2c56
Windowing layers and debugging
Jacob-Mango Aug 6, 2021
29f4954
Screen space properties linked to wrong 'reference' variable
Jacob-Mango Aug 6, 2021
04f4a12
Added maximising windows
Jacob-Mango Aug 6, 2021
427c5e3
Added window resizing
Jacob-Mango Aug 6, 2021
5f17871
Added window resizing on multiple axis
Jacob-Mango Aug 6, 2021
363a557
Initial implementation of timers
Jacob-Mango Aug 6, 2021
50a750d
Docs
Jacob-Mango Aug 6, 2021
fae2ca6
Merge branch 'feature/timers' into feature/mvvm
Jacob-Mango Aug 6, 2021
ccd82a5
Improved resizing
Jacob-Mango Aug 6, 2021
6d6b1b5
Changed DebugUI to automatically start
Jacob-Mango Aug 6, 2021
79228b5
Resolved spacing and naming issues
Jacob-Mango Aug 7, 2021
8afd914
Renamed to TimeElapsed
Jacob-Mango Aug 7, 2021
1c8760a
Changed default interval to 0 seconds
Jacob-Mango Aug 7, 2021
8c2aa5c
Merge branch 'feature/timers' into feature/mvvm
Jacob-Mango Aug 8, 2021
8080388
DebugUI is now created as a member variable
Jacob-Mango Aug 8, 2021
81c791e
Sync debug states, use a map and added default methods for a bunch of…
Jacob-Mango Aug 8, 2021
65fa412
Sync debug state, moved debug UI to an output
Jacob-Mango Aug 8, 2021
a2e00e2
Added debug manager through the UI
Jacob-Mango Aug 8, 2021
498b8f8
Added input 'UACFToggleWindowMode'
Jacob-Mango Aug 9, 2021
8ec0998
Fixed wrong indices being set for CF_Localiser
Jacob-Mango Aug 9, 2021
5080580
Show keybind in the in-game menu
Jacob-Mango Aug 9, 2021
9686407
TimeElapsed to TimeElapsedMS, added TimeElapsed as float in seconds
Jacob-Mango Aug 9, 2021
ef24128
Updated docs, added CF_DelayCall
Jacob-Mango Aug 10, 2021
42e8f77
Merge branch 'feature/timers' into feature/mvvm
Jacob-Mango Aug 10, 2021
a92a129
Added CF_MVVM_Menu
Jacob-Mango Aug 10, 2021
86c7035
Undefined function fix
Jacob-Mango Aug 10, 2021
0342839
Merge branch 'feature/timers' into feature/mvvm
Jacob-Mango Aug 10, 2021
b817ab6
Return the model
Jacob-Mango Aug 10, 2021
c3da9ac
Updated events documentation
Jacob-Mango Aug 11, 2021
0cd12ec
Added index.md
Jacob-Mango Aug 11, 2021
fa5308d
Update Events.md
Jacob-Mango Aug 11, 2021
ace9de5
Initial popup support, added nested variable support
Jacob-Mango Aug 12, 2021
5132fef
Merge branch 'feature/mvvm' of ssh://github.com/Jacob-Mango/DayZ-Comm…
Jacob-Mango Aug 12, 2021
488695a
added Position and Size variables
Jacob-Mango Aug 12, 2021
a75b2de
dropdown work
Jacob-Mango Aug 12, 2021
fdb50bd
Added CF_ManagedTimer
Jacob-Mango Aug 14, 2021
3cd9489
CF_ManagedTimer now inherits from CF_Timer
Jacob-Mango Aug 14, 2021
bc59455
Merge branch 'feature/typeconverters' into feature/mvvm
Jacob-Mango Aug 16, 2021
5951d21
Merge branch 'feature/typeconverters' into feature/mvvm
Jacob-Mango Aug 16, 2021
d324200
PR improvements
Jacob-Mango Sep 4, 2021
7014905
Merge branch 'feature/serializer' into feature/mvvm
Jacob-Mango Sep 4, 2021
08b36b1
Merge branch 'feature/timers' into feature/mvvm
Jacob-Mango Sep 4, 2021
b284265
Prevent window layouts from creating on server - aka CTD
Jacob-Mango Sep 4, 2021
3796705
Merge branch 'feature/utils' into feature/mvvm
Jacob-Mango Sep 4, 2021
292f318
Use new CF logging
Jacob-Mango Sep 4, 2021
478b72d
Fixed CTD due to recurssion
Jacob-Mango Sep 4, 2021
5c1e78e
Added enum and string array Add to CF_Debug
Jacob-Mango Sep 4, 2021
f297ed2
ToStr to GetDebugName
Jacob-Mango Sep 5, 2021
e37cf6f
Temporary scroller, tab increment on class add for debug
Jacob-Mango Sep 24, 2021
fbce436
Use DumpStackString for CF_Trace
Jacob-Mango Sep 24, 2021
e41ed28
Disable trace
Jacob-Mango Oct 1, 2021
7c619ef
Merge branch 'development' into feature/mvvm
Jacob-Mango Oct 1, 2021
3feede0
Merge branch 'development' into feature/mvvm
Jacob-Mango Oct 2, 2021
efee489
Compile error fix
Jacob-Mango Oct 2, 2021
7093a52
NotifyPropertyChanged fix
Jacob-Mango Oct 9, 2021
ca97af0
DebugUI attachment
Jacob-Mango Oct 13, 2021
7f84366
content width/height not being applied correctly
Jacob-Mango Oct 13, 2021
0f5d287
Merge branch 'development' into feature/mvvm
Jacob-Mango Nov 30, 2021
ace75ec
Merge branch 'feature/typeconverters' into feature/mvvm
Jacob-Mango Nov 30, 2021
5f740bb
ToVariable -> Write
Jacob-Mango Nov 30, 2021
be8c8ff
Merge branch 'feature/typeconverters' into feature/mvvm
Jacob-Mango Nov 30, 2021
0b0fa2e
Merge branch 'feature/utils' into feature/mvvm
Jacob-Mango Dec 3, 2021
b87b5d4
Fixed compile errors
Jacob-Mango Dec 3, 2021
c81598e
Merge branch 'feature/typeconverters' into feature/mvvm
Jacob-Mango Dec 3, 2021
9044250
Merge branch 'feature/typeconverters' into feature/mvvm
Jacob-Mango Dec 3, 2021
99c98ca
compile fix for typeconverter rename
Jacob-Mango Dec 3, 2021
c5675cb
Merge branch 'feature/typeconverters' into feature/mvvm
Jacob-Mango Dec 5, 2021
75a96ff
compile
Jacob-Mango Dec 5, 2021
65f3e33
temp fix for typeconverter constructor
Jacob-Mango Dec 5, 2021
15c9f15
Merge branch 'feature/typeconverters' into feature/mvvm
Jacob-Mango Dec 5, 2021
97a7ea4
Docs
Jacob-Mango Dec 5, 2021
fc3d2a3
Merge branch 'feature/typeconverters' into feature/mvvm
Jacob-Mango Dec 5, 2021
15d86fe
Prevent duplicate registration in-case of a user duplicating code
Jacob-Mango Dec 5, 2021
ea00966
Merge branch 'feature/typeconverters' into feature/mvvm
Jacob-Mango Dec 5, 2021
73653ea
Merge branch 'feature/typeconverters' into feature/mvvm
Jacob-Mango Dec 5, 2021
c41b781
Fixed compile error
Jacob-Mango Dec 5, 2021
0d23393
Merge branch 'development' into feature/mvvm
Jacob-Mango Dec 7, 2021
ed6fe15
added view in world
Jacob-Mango Dec 10, 2021
5b5c53f
windowing button
Jacob-Mango Dec 10, 2021
bffa686
Merge branch 'development' into feature/mvvm
Jacob-Mango Dec 10, 2021
12df91b
Renamed folder DebugUI to Debug
Jacob-Mango Dec 10, 2021
10561ec
Merge branch 'development' into feature/mvvm
Jacob-Mango Dec 10, 2021
5591c70
better use of cf trace
Jacob-Mango Dec 10, 2021
33f8616
fixed insert managed
Jacob-Mango Dec 10, 2021
fe1437b
auto formatting
Jacob-Mango Dec 10, 2021
f746df6
formatting and naming
Jacob-Mango Dec 10, 2021
c9ffb5b
fixed a crash
Jacob-Mango Dec 11, 2021
a5d5d47
Fixed null pointer in unlink
Jacob-Mango Dec 11, 2021
4d73378
added locking
Jacob-Mango Dec 11, 2021
280d7b8
disable
Jacob-Mango Dec 11, 2021
7898071
Added destroy flag
Jacob-Mango Dec 20, 2021
75e356d
check if linker is set
Jacob-Mango Dec 20, 2021
2041c5e
crash fix when debugging
Jacob-Mango Dec 20, 2021
d616b9a
trace
Jacob-Mango Dec 20, 2021
fc64216
Added CreateWidgets
Jacob-Mango Dec 25, 2021
57a5aa8
Merge branch 'development' into feature/mvvm
Jacob-Mango Jan 20, 2022
23cbc69
Removed timers
Jacob-Mango Jan 20, 2022
3b58a47
Fixed buttons
Jacob-Mango Jan 20, 2022
b691a2d
Fixed buttons, window state and added CF_ObservableSortedArray
Jacob-Mango Jan 20, 2022
cd72ff2
cleanup
Jacob-Mango Jan 20, 2022
03df8ac
compile
Jacob-Mango Jan 21, 2022
e7797ff
Merge branch 'development' into feature/mvvm
Jacob-Mango Jan 29, 2022
cb1ddbc
Fixed slider widget
Jacob-Mango Jan 29, 2022
3ffd336
Added back deprecated 'GetWidgetRoot' into CF_Window for mod compatib…
Jacob-Mango Feb 11, 2022
ddf1ca3
Merge branch 'development' into feature/mvvm
Jacob-Mango Mar 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions JM/CF/Defines/CFDefines.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@

//#define CF_TRACE_ENABLED

#define CF_MVVM
//#define CF_MVVM_TRACE

#define CF_WINDOWS
//#define CF_WINDOWS_TRACE

#define CF_DEBUG
//#define CF_DEBUG_TRACE

#define CF_GHOSTICONS

//#define CF_MODSTORAGE
Expand All @@ -16,3 +25,7 @@
#define CF_SURFACES

#define CF_MODULES

#ifdef CF_DEBUG
#define CF_DebugUI
#endif
164 changes: 164 additions & 0 deletions JM/CF/GUI/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,168 @@ class CfgPatches
"DZ_Data"
};
};
};
class CfgWrapperUI
{
class Colors
{
color1[] = {0.0,0.0,0.0,1.0};
color2[] = {0.2,0.2,0.2,1.0};
color3[] = {0.5,0.5,0.5,1.0};
color4[] = {0.6,0.6,0.6,1.0};
color5[] = {0.8,0.8,0.8,1.0};
};
class Background
{
alpha = 0.75;
texture = "#(argb,8,8,3)color(1,1,1,1)";
};
class TitleBar
{
alpha = 0.3;
texture = "#(argb,8,8,3)color(1,1,1,1)";
};
class GroupBox
{
alpha = 0.2;
};
class GroupBox2
{
alpha = 0.5;
texture = "#(argb,8,8,3)color(1,1,1,1)";
};
class Button
{
color1[] = {0.0,0.0,0.0,0.3};
color2[] = {0.2,0.2,0.2,0.3};
color3[] = {0.5,0.5,0.5,0.3};
color4[] = {0.6,0.6,0.6,0.3};
color5[] = {0.8,0.8,0.8,0.3};
};
class ListBox
{
line = "#(argb,8,8,3)color(1,1,1,1)";
thumb = "#(argb,8,8,3)color(1,1,1,1)";
arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)";
arrowFull = "#(argb,8,8,3)color(1,1,1,1)";
border = "#(argb,8,8,3)color(1,1,1,1)";
boxLeft = "#(argb,8,8,3)color(1,1,1,1)";
boxRight = "#(argb,8,8,3)color(1,1,1,1)";
boxHorz = "#(argb,8,8,3)color(1,1,1,1)";
};
class Slider
{
arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)";
arrowFull = "#(argb,8,8,3)color(1,1,1,1)";
border = "#(argb,8,8,3)color(1,1,1,1)";
thumb = "#(argb,8,8,3)color(1,1,1,1)";
};
class Cursors
{
class Arrow
{
texture = "JM\CF\GUI\textures\arrow_raw.paa";
width = 16;
height = 16;
hotspotX = 0;
hotspotY = 0;
color[] = {0.8,0.8,0.8,1};
shadow = 0;
};
class Debug: Arrow
{
color[] = {1.0,1.0,0.7,1};
shadow = 0;
};
class Track
{
texture = "#(argb,32,32,1)color(1,1,1,1)";
width = 24;
height = 24;
hotspotX = 0.5;
hotspotY = 0.5;
color[] = {0.7,0.1,0.0,1};
shadow = 0;
};
class Move
{
texture = "#(argb,32,32,1)color(1,1,1,1)";
width = 24;
height = 24;
hotspotX = 0.5;
hotspotY = 0.5;
color[] = {0.0,0.6,0.0,1};
shadow = 0;
};
class Scroll
{
texture = "#(argb,32,32,1)color(1,1,1,1)";
width = 24;
height = 24;
hotspotX = 0.5;
hotspotY = 0.5;
color[] = {0.8,0.6,0.0,1};
shadow = 0;
};
class Rotate
{
texture = "#(argb,32,32,1)color(1,1,1,1)";
width = 24;
height = 24;
hotspotX = 0.5;
hotspotY = 0.5;
color[] = {0.1,0.1,0.9,1};
shadow = 0;
};
class Track3D
{
texture = "#(argb,32,32,1)color(1,1,1,1)";
width = 24;
height = 24;
hotspotX = 0.5;
hotspotY = 0.5;
color[] = {0.7,0.1,0.0,1};
shadow = 0;
};
class Move3D
{
texture = "#(argb,32,32,1)color(1,1,1,1)";
width = 24;
height = 24;
hotspotX = 0.5;
hotspotY = 0.5;
color[] = {0.0,0.6,0.0,1};
shadow = 0;
};
class Rotate3D
{
texture = "#(argb,32,32,1)color(1,1,1,1)";
width = 24;
height = 24;
hotspotX = 0.5;
hotspotY = 0.5;
color[] = {0.1,0.1,0.9,1};
shadow = 0;
};
class Raise3D
{
texture = "#(argb,32,32,1)color(1,1,1,1)";
width = 24;
height = 24;
hotspotX = 0.5;
hotspotY = 0.5;
color[] = {0,0.8,1,1};
shadow = 0;
};
class Wait
{
texture = "#(argb,32,32,1)color(1,1,1,1)";
width = 24;
height = 24;
hotspotX = 0.5;
hotspotY = 0.5;
color[] = {0.1,0.1,0.9,1};
shadow = 0;
};
};
};
81 changes: 81 additions & 0 deletions JM/CF/GUI/layouts/debug/debugui.layout
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
WrapSpacerWidgetClass BlockSpacer {
ignorepointer 1
position 0 0
size 1 1
hexactpos 0
vexactpos 0
hexactsize 0
vexactsize 0
scriptclass "CF_WrapSpacerWidget"
Padding 0
Margin 0
{
ScrollWidgetClass scroller {
ignorepointer 0
position 0 0
size 1 1
valign bottom_ref
hexactpos 0
vexactpos 0
hexactsize 0
vexactsize 0
scriptclass "CF_ScrollWidget"
style blank
"Scrollbar V" 1
"Scrollbar V Left" 0
{
MultilineTextWidgetClass TextField {
ignorepointer 1
position 0 0
size 1 1
hexactpos 0
vexactpos 0
hexactsize 0
vexactsize 0
scriptclass "CF_MultilineTextWidget"
text "AAA"
font "gui/fonts/system"
"exact text" 1
"size to text h" 1
"size to text v" 1
{
ScriptParamsClass {
Text "m_Data"
}
}
}
}
{
ScriptParamsClass {
Visible "m_ViewInWorld:CF_TypeConverter_BoolInvert"
}
}
}
MultilineTextWidgetClass TextFieldLocked {
ignorepointer 1
position 0 0
size 1 1
hexactpos 0
vexactpos 0
hexactsize 0
vexactsize 0
scriptclass "CF_MultilineTextWidget"
text "AAA"
font "gui/fonts/system"
"exact text" 1
"size to text h" 1
"size to text v" 1
{
ScriptParamsClass {
Visible "m_ViewInWorld"
Text "m_Data"
}
}
}
}
{
ScriptParamsClass {
Model "CF_DebugUI"
}
}
}
53 changes: 53 additions & 0 deletions JM/CF/GUI/layouts/debug/entry.layout
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
PanelWidgetClass cf_debug_entry {
ignorepointer 1
color 0.2941 0.2941 0.2941 0.5529
position 0 0
size 1 20
hexactpos 0
vexactpos 0
hexactsize 0
vexactsize 1
scriptclass "CF_PanelWidget"
style DayZDefaultPanel
{
TextWidgetClass cf_debug_entry_name {
ignorepointer 1
position 0 0
size 1 1
valign center_ref
hexactpos 0
vexactpos 0
hexactsize 0
vexactsize 0
scriptclass "CF_TextWidget"
{
ScriptParamsClass {
Text "m_Name"
}
}
}
CheckBoxWidgetClass cf_debug_entry_toggle_ui {
size 200 1
halign right_ref
valign center_ref
hexactpos 0
vexactpos 0
hexactsize 1
vexactsize 0
scriptclass "CF_CheckBoxWidget"
style Default
text "Window"
{
ScriptParamsClass {
Event_Change "Event_ToggleWindow"
Checked "m_UI"
}
}
}
}
{
ScriptParamsClass {
Model "CF_Debug"
}
}
}
Loading