Commit Graph
82 Commits
Author SHA1 Message Date
Dylan WilsonandGitHub e962cec448 A mix between Tiled and GUI stuff (#553)
* mostly restored the tiled importer unit tests

* code cleanup

* code cleanup

* almost got tiled maps serialization independent of the content pipeline

* refactored the tiled map content importer so that tiled maps can be loaded at runtime

* code cleanup

* removed nuspec files

* experimenting with an XML based GUI markup parser

* a few more markup parser features

* finally got a working open file dialog

* experimenting with markup bindings

* attached properties

* working on the gui stuff again

* working on a better textbox

* multiline textboxing

* new text box is really coming along

* removed the content explorer experiment

* restored the old gui demo back to the way it was before (for now)
2018-10-09 22:18:48 +10:00
YHHandDylan Wilson 36efebeba4 fix reflection bug (#548)
* fix reflection bug

* fix
2018-09-18 11:49:20 +10:00
Dylan Wilson f523efabe4 fixed some clipping rectangle issues 2018-03-28 22:56:18 +10:00
Dylan Wilson 95e1ab0881 composite controls sort of solve half the problems 2018-03-28 22:45:32 +10:00
Dylan Wilson 7d42751468 added min/max width/height to gui controls 2018-03-23 22:37:01 +10:00
Dylan Wilson 8962541d36 toggle button 2018-03-18 21:32:33 +10:00
Dylan Wilson 1a92da00dd fixed some layout bugs and other things 2018-03-16 21:23:40 +10:00
Dylan Wilson 1ad2838b1c basic controls demo coming together 2018-03-12 21:31:24 +10:00
Dylan Wilson 990e6e671e content control working fairly well now 2018-03-11 22:07:32 +10:00
Dylan Wilson 6fe96395b8 proper dock panels with attached dock properties 2018-03-09 23:34:39 +10:00
Dylan Wilson a206ed4143 so many things are so nice now 2018-03-09 22:44:10 +10:00
Dylan Wilson 24d38fe820 implemented content size and actual size methods 2018-03-09 14:29:06 +10:00
Dylan Wilson 85e7b94201 fixed a padding bug in the stack panel 2018-03-09 12:50:36 +10:00
Dylan Wilson 22ed12d816 gui screens can only have one content item 2018-03-09 11:44:20 +10:00
Dylan Wilson 99e7b125ed restored the basic functionality of list box and combo box 2018-03-07 21:32:58 +10:00
Dylan Wilson 1381988b83 restored text box foreground 2018-03-07 21:27:09 +10:00
Dylan Wilson 80b74b5155 in the middle of refactoring content controls 2018-03-06 21:40:50 +10:00
Dylan Wilson f5c8040270 new content and items base classes for gui controls 2018-03-05 23:03:13 +10:00
Dylan Wilson 0c8ccf5125 dropped the gui prefix on most of the gui stuff 2018-03-05 22:06:57 +10:00
Dylan Wilson 1c7691643f simplified the gui skinning system 2018-03-04 22:30:02 +10:00
Dylan Wilson ea1ad9221e started refactoring the gui system a little 2018-03-04 21:47:54 +10:00
Dylan Wilson 1cbe32e917 experimenting with data binding in the gui 2018-02-25 23:00:37 +10:00
Dylan Wilson bbec589838 improvements to the gui system 2018-02-22 22:49:31 +10:00
Dylan Wilson fba291e8e6 code cleanup 2018-02-13 22:31:20 +10:00
tspayne87andDylan Wilson 61614b5ffa [GUI] Binding Context / Control Style Fixes (#443)
* Adding in changes to deal with custom control types for loading from a GuiScreen, also adding in block text if a width for the element exists.  Adding in Padding to some elements to give the developer some more options in styles.  Adding in some changes to the textbox to deal with selecting a section of text.

* Adding in a few changes to deal with propagation down the GuiControl tree, this was added to most events.  Also, adding in the idea of a form and submit button to deal with keyboard controls when inside of a form.  This gives simalar behavier to how forms work in the browser.

* Adding in the enter key skip for the textbox.

* Fixing issue where GuiSystem would call initialize twice

* Adding in a fix for Issue #428, by leveraging the propegation system to deal with hover styles.

* Adding in some changes to seperate the global binding context and have it isolated in the screen.  Also adding in code to deal with a global style binding as well.
2017-12-17 21:36:10 +10:00
tspayne87andDylan Wilson 97d237f11f [GUI] Propegation changed also adding in fix for Issue #428 (#441)
* Adding in changes to deal with custom control types for loading from a GuiScreen, also adding in block text if a width for the element exists.  Adding in Padding to some elements to give the developer some more options in styles.  Adding in some changes to the textbox to deal with selecting a section of text.

* Adding in a few changes to deal with propagation down the GuiControl tree, this was added to most events.  Also, adding in the idea of a form and submit button to deal with keyboard controls when inside of a form.  This gives simalar behavier to how forms work in the browser.

* Adding in the enter key skip for the textbox.

* Fixing issue where GuiSystem would call initialize twice

* Adding in a fix for Issue #428, by leveraging the propegation system to deal with hover styles.
2017-11-26 20:48:57 +10:00
tspayne87andDylan Wilson 46f3f99b39 [GUI] Adding support for parent propegation, the idea of forms and textbox highlighting (#439)
* Adding in changes to deal with custom control types for loading from a GuiScreen, also adding in block text if a width for the element exists.  Adding in Padding to some elements to give the developer some more options in styles.  Adding in some changes to the textbox to deal with selecting a section of text.

* Adding in a few changes to deal with propagation down the GuiControl tree, this was added to most events.  Also, adding in the idea of a form and submit button to deal with keyboard controls when inside of a form.  This gives simalar behavier to how forms work in the browser.

* Adding in the enter key skip for the textbox.
2017-11-21 10:50:24 +10:00
Rafael AlmeidaandDylan Wilson 5a7f012bff Added support for icons on buttons (#438) 2017-11-21 10:14:40 +10:00
Dylan WilsonandGitHub b3a631aff5 Gui dialogs (#410)
* started refactoring for gui windows

* a bit more work on gui windows

* fixed some bugs and broken build stuff

* fixed some bugs in gui controls

* a little code cleanup

* got gui dialogs positioning and experimenting with named styles by type

* apply control styles directly in the constructor of controls

* got everything compiling again

* all gui controls have skinnable constructors

* rework uniform grid desired size calculations

* turns out gui layouts are complicated

* include pdb files in nuget packages

* fixed a bug in find nearest glyph

* custom control styling

* added a range constructor overload that takes one value

* rethinking control desired size behaviour

* made particle emitters more editable at runtime

* moved the auto trigger code to the particle effect instead of the emitters

* tweaks

* changed the particle modifer interface to an abstract base with an optional name

* changed the particle modifer interface to an abstract base with an optional name

* an attempt at creating a gui combo box

* rolled back the nested control experiment

* pretty good (but not perfect) combo boxes

* tweaks

* name property bindings on lists

* removed and cleaned up the hacks from the gui combo box

* minor combo box styling tweaks

* minor bug fix in gui combo box

* experiments with data binding

* fixed a mistake on the texture region service interface

* working on the ability to serialize particles

* finished particle serialization

* more robust range deserialization

* added editor browable attributes

* fixed some broken demos

* made the particle modifiers editable at runtime

* fixed some issues with particle serialization

* fixed some issues with interpolators
2017-07-22 21:22:13 +10:00
Dylan Wilson 4eae631af2 fixed some bugs in gui text box 2017-05-23 20:42:09 +10:00
Dylan Wilson 1952bbe784 reworking the gui demo and fixing things on the way 2017-05-02 22:13:21 +10:00
Dylan Wilson b89b9c7772 improved feature demo selection 2017-04-29 21:46:18 +10:00
Dylan Wilson a0e9364ba3 merged changes in gui control 2017-04-29 14:02:16 +10:00
Dylan Wilson 1d55e72ebc fixed a broken unit test 2017-04-28 23:04:41 +10:00
Dylan Wilson 14bf2254d7 finally sorted out most of the gui layout issues 2017-04-28 23:01:10 +10:00
Dylan Wilson 6118a2bae3 making a little more progress on the gui layout system 2017-04-27 22:49:56 +10:00
Dylan Wilson 8d10215961 working on gui dialog stuff 2017-04-26 22:35:12 +10:00
Dylan Wilson 55cec6243f taking into account the text size when calculating desired control size 2017-04-21 22:34:31 +10:00
Dylan Wilson 90d5098490 fixed most of the broken bits in the gui layout code 2017-04-21 21:40:32 +10:00
Dylan Wilson 744b20d781 minor gui bug fixes 2017-04-20 22:45:32 +10:00
Dylan Wilson 952f3415af gui uniform grid layout control 2017-04-20 22:15:35 +10:00
Lucas Girouard-Stranks 4edce00e35 Fix BitmapFont 2017-04-20 02:16:08 -07:00
Dylan Wilson 18c0f0e749 roughed out the gui canvas control 2017-04-19 22:51:42 +10:00
Dylan Wilson 9f012d87a1 working on the gui layout system 2017-04-19 22:37:04 +10:00
Dylan Wilson 1ed766c758 stack panel with control margins 2017-04-13 22:11:29 +10:00
Dylan Wilson c2225dbbcd refactored the demos to share a viewport adapter and camera 2017-04-13 20:30:32 +10:00
Dylan Wilson 4585f9a5c3 added keyboard and mouse scrolling to the gui list box control 2017-04-01 21:14:01 +10:00
Dylan Wilson 571f531843 gui list box item selection and adding items from styles 2017-03-29 22:32:26 +10:00
Dylan Wilson 37d88e3c31 working on a gui list box 2017-03-28 22:11:16 +10:00
Dylan Wilson d46d6d0076 fixed up the caret clipping in the text box (still not technically correct, but better) 2017-03-17 21:23:57 +10:00