Commit Graph
41 Commits
Author SHA1 Message Date
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 1952bbe784 reworking the gui demo and fixing things on the way 2017-05-02 22:13:21 +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
Lucas Girouard-Stranks 4edce00e35 Fix BitmapFont 2017-04-20 02:16:08 -07: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 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 4e493fe901 added the ability to click inside a textbox to move the caret 2017-03-17 21:02:32 +10:00
Dylan Wilson 098799a63d added support for a password character in the gui text box 2017-03-16 20:50:20 +10:00
Dylan Wilson 825a68eaca moved the input listeners to thier own nuget package 2017-03-13 20:48:40 +10:00
Dylan Wilson df61d36661 minor tweak to gui button behaviour 2017-03-03 23:07:17 +10:00
Dylan Wilson 8e39e0d703 gui touch input mostly working 2017-03-03 22:53:01 +10:00
Dylan Wilson 24d2a4c659 renamed texture region to background region 2017-02-25 00:03:05 +10:00
Dylan Wilson 4d6838bde8 basic gui progress bars 2017-02-24 21:43:51 +10:00
Dylan Wilson 298589db06 clipping text inside a textbox is a little harder than I expected 2017-02-22 22:16:30 +10:00
Dylan Wilson 8fa15aedf6 added clipping rectangles to gui controls so that text is clipped inside the bounds of textbox 2017-02-22 21:19:04 +10:00
Dylan Wilson 255cfdbb78 working gui text box 2017-02-14 22:48:04 +10:00
Dylan Wilson 7fbebaf3d2 refactored the gui renderer 2017-02-14 17:45:11 +10:00
Dylan Wilson d1bdba4fb4 gui control visibility 2017-02-07 20:52:30 +10:00
Dylan Wilson 3c60cee685 working on nested gui controls 2017-02-01 21:22:37 +10:00
Dylan Wilson 4365b1cec8 code cleanup mostly in the gui and serialization namespaces 2017-01-31 20:52:27 +10:00
Dylan Wilson a8f7b67ce1 creating gui skins in code 2017-01-21 21:38:09 +10:00
Lucas Girouard-StranksandDylan Wilson b22a062147 Fix Tiled Problems (#332)
* Add Tiled Content Pipeline library to NuGet

* Update Tiled NuGet package elements.

* Remove dependency on Graphics

* Update csproj for removal of Graphics dependency

* Fix build errors

* Fix problems
2017-01-20 21:08:14 +10:00
Dylan Wilson 8bf737f797 gui button demo 2017-01-17 21:25:05 +10:00
Dylan Wilson 777f723263 minor code cleanup 2017-01-11 22:25:24 +10:00
Dylan Wilson baa1a4189b working gui buttons 2017-01-11 22:17:50 +10:00
Dylan Wilson 23069bd031 finally getting back to working on the new gui system 2017-01-10 23:01:49 +10:00
Dylan Wilson 7bfd6ef789 removed the old gui code and slowly started replacing it with the new 2016-12-13 22:56:19 +10:00
Dylan Wilson 7ad68be14e rendering nested gui controls 2016-11-22 20:19:39 +10:00
Dylan Wilson de418cad91 started refactoring the old gui code 2016-11-17 21:56:56 +10:00
Dylan Wilson c672a4d718 split the old gui code out into it's own project 2016-11-17 20:36:40 +10:00