44220c8f9a
Added Resize & SetIcon to Renderer.
...
Refactored Size (on Renderer) to return geom.Point instead of geom.PointF32.
2020-12-12 14:40:50 +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
e7ada7fea0
Using normal cursor when control is disabled.
2020-05-18 20:28:13 +02:00
ea5e1a4989
Added DisabledColor to button.
2020-05-18 12:37:42 +02:00
7f2e155edd
Renderers now respect Location of NewRendererOptions.
2020-05-17 21:02:38 +02:00
32c53eb947
Fixed tooltip flickering when not blocking on events.
2020-05-17 21:02:07 +02:00
0f54224cc7
Removed OverlayProxy and incorporated logic into Proxy.
2020-05-17 20:07:52 +02:00
bcf3093c87
Overlays all handle the same events but if a overlay handles the event then the content won't get the event.
2020-05-17 16:11:47 +02:00
0c399a8d93
Only animate when textbox has focus.
2020-05-17 15:31:06 +02:00
8560204c39
Added display move event.
...
- The Allegro (alui) implementation only provides emulation of the event (comparing the position every time other events are handled).
2020-05-17 15:30:52 +02:00
22cc3ce444
Added support for a fixed icon height on buttons.
2020-05-17 14:59:28 +02:00
c78c4052d0
Refactored DrawTexture on Renderer to favor rendering using destination rectangle instead of a point.
2020-05-17 11:12:45 +02:00
f20397c684
Moved default NewRendererOptions to generic part instead of in specific renderers.
2020-05-17 08:29:02 +02:00
e2472cffef
Added default style if style is not set on Run{,Wait}.
...
Exposed Resources in Context as well.
2020-05-17 07:54:54 +02:00
b78f215c8c
Fixed bug where nil was stored as a scaled texture.
2020-05-17 07:54:19 +02:00
b9534ee255
Made tooltip overlay switch visibility only when changed.
...
Added Tooltip.SetVisibility.
Fixed bug where no events where triggered for change in visibility.
2020-05-17 07:21:58 +02:00
75fce53716
Added Paragraph control.
...
Extended DesiredSize method with extra arguments that tells the control how much space is available for the parent control (note: this might not be the actual given size when Arrange is called on the control).
2020-05-16 15:37:53 +02:00
add33c6e7e
Fixed bug where selection wasn't overwritten by typed character.
2020-05-16 13:47:25 +02:00
ae46d2a1f2
Added Disabled to controls.
2020-05-16 13:46:07 +02:00
d673653d3f
Renamed EventFn to EventEmptyFn and EventStateFn to EventFn (both in ui and zntg packages).
2020-05-16 12:07:13 +02:00
8c48c949e9
Renamed Overlay callbacks & extended interface of Overlay (must be a Control as well).
2020-05-16 10:57:14 +02:00
9af85d79a6
Added callbacks & events when visibility of an overlay changes.
...
Added proxy that proxies overlay callbacks as well (on top of control callbacks).
2020-05-16 10:12:54 +02:00
7f3d836254
Added a generic Events struct in zntg (without ui.Context).
...
Refactored ui.Events to re-use zntg.Events.
2020-05-16 09:36:04 +02:00
ff4b04262c
Moved fs addon as res addon.
2020-05-16 09:22:32 +02:00
661a11fecd
Added tests for HexColor.
2020-05-16 08:54:45 +02:00
d742fba7e9
Added Events and changed event handlers of controls.
...
Removed EventHandlers from Control interface.
2020-05-15 19:00:43 +02:00
4e37f4b23e
Added secondary colors to palette.
2020-05-15 17:02:18 +02:00
3a18d3adf9
Added support for tooltips.
2020-05-15 16:53:57 +02:00
6db13c8f46
Added overlays.
2020-05-15 16:02:54 +02:00
3591e22c97
Added Fonts() to context similarly as Textures().
...
- Fonts are now managed by context instead of the implementation specific renderers.
2020-05-15 15:42:24 +02:00
02ee819a99
Favoring Context.Textures() over direct texture assignment to controls.
2020-05-15 14:44:55 +02:00
b28b3e1838
Added Resources abstraction.
2020-05-15 14:20:07 +02:00
a0660a9650
Moved clipboard to addons.
2020-05-15 13:14:08 +02:00
5d297c98b8
Keeping state of a drag operation separately.
2020-05-15 12:15:44 +02:00