Commit Graph

179 Commits

Author SHA1 Message Date
f56c5dd389 Added support for getting & setting location of Renderer. 2022-05-01 12:05:17 +00:00
ddf9476920 Added support for borderless windows. 2022-05-01 12:40:09 +02:00
eb46741165 Added support for scrolling a control into view (Overflow, only vertically currently). 2021-08-19 18:26:15 +02:00
a6415a1d60 Added UserCache{File,Dir} and renamed User{File,Dir} to UserConfig{File,Dir}. 2021-08-09 19:15:08 +02:00
5e4afbe038 Removed drop dependency from allg5ui renderer. 2021-08-09 11:13:20 +02:00
98a75206bc Add alignment to FPS control. 2021-08-09 09:33:26 +02:00
12a9f5ee39 Last visibile item in StackPanel is now clipped to maximum available area. 2021-07-19 17:55:43 +02:00
de8ce3e7bc Added text overflow to label.
Generalised text fitting (to width) and implemented binary search.
2021-07-19 17:55:10 +02:00
5dcecb8cc1 Added clipping for Overflow/ScrollControl. 2021-07-19 07:59:02 +02:00
c0586c1d8f Added overridable text padding. 2021-07-19 07:58:46 +02:00
764f2a0dd2 Added rendering of bounds in debug mode. 2021-07-18 22:48:48 +02:00
5a4dcd52b0 Added embedres.
- Exposes embed.FS (native) as a ui.Resources.
2021-07-18 22:47:34 +02:00
bcd32f8372 Fixed panic in Overflow. 2021-06-17 20:18:23 +02:00
e5bfd1394c Added text changed event to TextBox. 2021-06-17 19:34:37 +02:00
7fa5601307 Added Pos methods to DisplayDrag{Enter,Move}Event. 2021-06-07 07:56:52 +02:00
b63fc999e1 Fixed example 02_drop. 2021-06-04 20:14:56 +02:00
6839870055 Fixed bug with Line (sdlui.Renderer). 2021-06-04 17:17:41 +02:00
3c89748eac Added drag & drop addon.
- Drop addon is based on WM_DROPFILES, dragdrop addon is based on the OLE IDragDrop interface and thus can registerer more interactions.
- The allg5ui implementation will try to fall back on the drop addon (because the dragdrop addon wouldn't work properly).
- Drop addon is refactored to use the same interface as the dragdrop addon.
2021-06-04 17:17:22 +02:00
302ae1c338 Added simple drop (files) addon. 2021-06-01 21:14:51 +02:00
4cff23cd37 Mouse wheel now increments/decrements the slider value by 1.
- With shift pressed it moves the value 10.
- With control pressed it moves the value with 0.1 (does nothing when the Integer flag is enabled).
2021-05-11 08:25:15 +02:00
72138bb8e3 Added Line to Renderer. 2021-03-23 12:31:31 +01:00
7aa88e2dc6 Fixed bug in slider when maximum equal to or less than the minimum was supplied. 2021-01-14 11:44:17 +01:00
dbeacc3794 Split rendering of buffer & blitting it to the display. 2021-01-12 20:35:07 +01:00
480e864b53 Show event wasn't invoked on overlay when visibility was set to true on add. 2021-01-09 17:08:35 +01:00
9dc301eed8 Fixed two issues with slider.
Value was always set back to original value.
Events were always handled by slider (handle).
2021-01-09 17:07:10 +01:00
102c187566 Added generic margin. 2020-12-13 07:43:00 +01:00
11e37af9c2 Added shorthand method for retrieving default font for the control. 2020-12-13 07:40:58 +01:00
5babda0ca9 Added (optional) dropshadow for label. 2020-12-13 07:40:58 +01:00
b1cdbea90f Changed colors of button text a bit. 2020-12-13 07:40:58 +01:00
7d5168614e Added override for scrollbar color. 2020-12-13 07:40:58 +01:00
b0a13d1a3c ContainerBase now provides a DesiredSize (maximum of all children, if any). 2020-12-13 07:40:58 +01:00
cc32cf5bc3 Added scaled ImageSource. 2020-12-13 07:40:58 +01:00
0f03760e66 Added Resize & SetIcon to Renderer.
Refactored Size (on Renderer) to return geom.Point instead of geom.PointF32.
Refactored Width and Height (on Texture) to return int instead of float32.

Refactored texture dimensions to be represented by ints instead of float32s.
2020-12-13 07:40:19 +01:00
de87c5d3aa Try casting to PhysicalResources first when setting resource provider.
SetResourceProvider accepts Resources instead of factory method to it.
2020-07-07 18:19:34 +02:00
67e73a8671 Resources only exposes OpenResource (and Destroy).
PhysicalResources derives from Resources and exposes FetchResource.
Made dependency specific resource addons.
Extended the available resource options (fallback, path, refactored copy).
NewRenderer provides DefaultResources to the created renderer.
2020-05-25 22:24:06 +02:00
869f87dd4f Added a debug overlay. 2020-05-24 20:15:40 +02:00
43d49a0dbb Fixed bug where spacing was not respecting a fixed width/height when asking its proxied control for its desired size. 2020-05-24 19:15:45 +02:00
352984d6d9 Overlays must be handled & rendered in their order. 2020-05-24 18:42:22 +02:00
cdc999ad42 Added option to Pan using tile coordinates.
Fixed incorrect panning.
2020-05-23 11:02:12 +02:00
7793fe823f Added IsometricProjection. 2020-05-23 10:19:10 +02:00
2238f8749a Changed allg5ui.font.Measure() implementation to be more consistent with the sdlui implementation. 2020-05-23 08:28:21 +02:00
b434a71f00 Added Animation.IsActive. 2020-05-23 08:20:20 +02:00
3bab08a0a6 Added support for rendering a partial texture. 2020-05-23 08:20:04 +02:00
23115b8a0f Added support for rendering text to a texture. 2020-05-22 17:42:02 +02:00
9371a8738e Fixed bug where incorrect path was stored as source for CreateTexturePath in the Allegro renderer. 2020-05-22 09:08:50 +02:00
a2cb2d03ca Allegro CreateTexture{Go,Path} didn't respect source flag. 2020-05-20 19:45:45 +02:00
39766e9f01 SDL surface is created from non-alpha-premultiplied colors. 2020-05-20 19:45:16 +02:00
0fe9a2ce63 Added FPS counter. 2020-05-18 21:01:17 +02:00
7dde894bf0 Fixed two bugs with overlay visibility.
- Toggle didn't toggle but hide.
- Hide hid the overlay but didn't trigger any callbacks/events.
2020-05-18 20:59:05 +02:00
16d4e26cd0 Exposed last known key modifiers in context. 2020-05-18 20:35:34 +02:00