Commit Graph
71 Commits
Author SHA1 Message Date
Pieter-Jan Briers 0de8615033 Document some GUI controls. 2019-07-08 23:02:59 +02:00
Pieter-Jan BriersandGitHub 09c36b57cd Shift half of Clyde around to implement better outline rendering. (#830)
* Attempted Clyde cleanup, didn't get far.

* Add negation operator to Vector2i.

* Add RenderOrder to ISpriteComponent.

* Post process shaders.

Adds "post process" shaders to sprite component.
These are executed on the WHOLE sprite component (every layer)
in one draw.

This is necessary to implement functional outlines.
2019-07-06 19:17:33 +02:00
Pieter-Jan Briers 300c2c05e4 Implement Label ClipText. 2019-05-29 01:05:43 +02:00
Pieter-Jan Briers f9e192b01e Vertically center checkboxes. 2019-05-29 00:55:34 +02:00
Pieter-Jan Briers 4892d0d0fa Fix some compiler warnings and remove dead code. 2019-05-28 00:30:18 +02:00
moneylandPieter-Jan Briers 110bd0921a Add StyleBox overrides to ProgressBar (#818)
* Add StyleBox overrides to ProgressBar

The overrides are StyleBoxFlat instead of StyleBox as StyleBox does not expose or possess a color property. _getBackground and _getForeground were also changed to return StyleBoxFlat instead of StyleBox to keep things simple.

* Change ProgressBar _getBackground and _getForeground back to StyleBox

* Change ProgressBar style box overrides from StyleBoxFlat to StyleBox
2019-05-25 01:41:39 +02:00
moneylandPieter-Jan Briers b92ea9a2aa Remove GUI dependence on tscn files (#812)
* Remove unused options menu tscn

* Move SS14Window to pure C#

* Move SpriteView to pure C#

* Move EntitySpawnWindow and EntitySpawnItem to pure C#

* Removes using statements accidentally added by resharper

* Set EntitySpawnWindow default size to normal value

Note that in construction menu and storage menu this had to be done in the object initializer and didn't work if it was set in the Initialize function for the respective menus. For whatever reason setting it in the EntitySpawnWindow.Initialize works fine.
2019-05-24 16:57:13 +02:00
Pieter-Jan Briers bb7288d26a ItemList only shows scrollbar when necessary. 2019-05-14 12:54:26 +02:00
Pieter-Jan Briers b30c2155c7 Improve ItemList rendering to correctly handle margins. 2019-05-14 11:26:37 +02:00
Pieter-Jan Briers f7ccac2c11 Make Label align individual lines to center. 2019-05-14 01:19:01 +02:00
Pieter-Jan Briers 9db3473b7a Containers handle size flags better. 2019-05-13 14:51:50 +02:00
Pieter-Jan Briers 1403c14acb Fix MarginContainer layout. 2019-05-13 09:14:23 +02:00
Pieter-Jan Briers ab8feee660 Add ItemList.ClearSelections() 2019-05-12 15:07:07 +02:00
Pieter-Jan Briers e6417582c8 Fix OptionButton popup going under other controls. 2019-05-12 12:09:38 +02:00
Pieter-Jan BriersandGitHub 17ebeac107 UI Scaling Support. (#809)
Not quite perfect, but quite usable.

Adds the ability to scale the UI. Scaling is controlled via a cvar,
and can be changed at runtime.
Fractional scaling is supported.

Some controls could be better (SpriteView, TextureRect),
but for now it's a good start.
2019-05-11 16:04:14 +02:00
Pieter-Jan BriersandGitHub cf2995437f Remove Godot support. (#805)
Let's be real, it's pretty damn broken already and will never be fixed.
2019-05-05 01:58:24 +02:00
Pieter-Jan Briers d621b1a611 Button default text align is centered.
This is in line with Godot's behavior.
2019-05-04 17:49:51 +02:00
Pieter-Jan Briers 702f38e1fd Fix SplitContainer when constrained by minsize. 2019-05-03 17:11:13 +02:00
Pieter-Jan Briers 1a54d5f513 Load MarginContainer margins from tscn. 2019-05-03 17:10:50 +02:00
Víctor Aguilera PuertoandPieter-Jan Briers dabc3194b0 ItemLists now have a scrollbar and can be scrolled with the mouse wheel as well. (#797)
* You can scroll ItemLists now.

* ScrollBar actually appears!

* Remove System.Drawing

* Move total content height away from the drawing loop, recalculate it...

...when needed.

* Take ActualBackground minimum vertical size into account

* Fix cases where lists didn't scroll to the very bottom.

* Fix CalculateMinimumSize for real I hope
2019-04-23 01:51:42 +02:00
SilverandGitHub 25926a17b7 Renames SS14.* to Robust.* (#793)
RobustToolbox projects should be named Robust.* 

This PR changes the RobustToolbox projects from SS14.* to Robust.*

Updates SS14.* prefixes/namespaces to Robust.*
Updates SpaceStation14.sln to RobustToolbox.sln
Updates MSBUILD/SS14.* to MSBUILD/Robust.*
Updates CSProject and MSBuild references for the above
Updates git_helper.py
Removes Runserver and Runclient as they are unusable
2019-04-15 20:24:59 -06:00