Commit graph

193 commits

Author SHA1 Message Date
griffi-gh b12c62e06f frame api is a mess... 2024-03-23 19:53:32 +01:00
griffi-gh 3ac83e161a rename stuff... 2024-03-23 19:42:53 +01:00
griffi-gh d1e1325068 fvck 2024-03-23 17:54:47 +01:00
griffi-gh 5ce9dda77b change name function to lower case 2024-03-23 15:54:33 +01:00
griffi-gh fa994e659a rename Br to Break 2024-03-23 15:52:54 +01:00
griffi-gh 328f745c39 add interactable active check 2024-03-23 15:52:14 +01:00
griffi-gh e22fa739c1 use new trigger api for interactable 2024-03-23 15:50:44 +01:00
griffi-gh 89037efebb add todo note 2024-03-23 15:43:22 +01:00
griffi-gh d347f8f7e9 for now, make frame non-pub 2024-03-23 15:41:19 +01:00
griffi-gh 85810a2e59 impl from corners f32 for roundedcorners 2024-03-23 15:10:32 +01:00
griffi-gh 7bfd12749b aaa 2024-03-23 15:09:05 +01:00
griffi-gh bbc1d9f1ff uhh i'm not happy with this 2024-03-23 02:05:44 +01:00
griffi-gh 915b99c3a5 frame stuff 2024-03-23 01:57:07 +01:00
griffi-gh d430996e14 impl from stuff 2024-03-22 19:35:00 +01:00
griffi-gh a0dc882799 static -> absolute, fraction -> relative 2024-03-22 18:39:18 +01:00
griffi-gh cf7919d041 add image to frame layer 2024-03-22 18:35:00 +01:00
griffi-gh 8f3e04c445 frame wip 2024-03-22 18:33:34 +01:00
griffi-gh ab5998de03 slider stuff 2024-03-22 15:15:47 +01:00
griffi-gh 50ea989906 fix containers defaulting to black color 2024-03-21 23:57:35 +01:00
griffi-gh 4ad3fed6d3 add active part to slider, optimize rendering 2024-03-21 23:51:00 +01:00
griffi-gh 68114bd7dc add fn to check if completely opaque 2024-03-21 23:38:43 +01:00
griffi-gh b5f3fc192e remove deprecated BackgroundColor struct 2024-03-21 23:31:49 +01:00
griffi-gh 4574cb8862 Rename rectangle module to rect 2024-03-21 23:22:40 +01:00
griffi-gh 99527d0dcb Refactor fill color stuff 2024-03-21 23:20:47 +01:00
griffi-gh 36345119a3 Deprecate bacgroundcolor, update comments 2024-03-21 23:09:19 +01:00
griffi-gh a4cac48bda add doc comment for slider 2024-03-21 22:59:37 +01:00
griffi-gh e8d8951320 fix some warnings 2024-03-21 22:59:31 +01:00
griffi-gh 7ae72b7a41 comment out element triggers 2024-03-21 22:26:50 +01:00
griffi-gh d526928d9b a bunch of signal and input changes 2024-03-21 22:23:42 +01:00
griffi-gh 33d161500f slider and some input stuff 2024-03-21 18:41:28 +01:00
griffi-gh 6606119cc4 wip slider and stuff 2024-03-14 13:30:44 +01:00
griffi-gh 59a704d516 actually check event type 2024-03-13 14:35:12 +01:00
griffi-gh 03f1d75d3c stuff 2024-03-12 19:48:17 +01:00
griffi-gh 3f99151d93 remove unused deps 2024-03-12 18:37:34 +01:00
griffi-gh cc591ffa1f drain remaining signals 2024-03-12 01:40:51 +01:00
griffi-gh a46cd7856b add br element, update docs 2024-03-12 01:38:11 +01:00
griffi-gh 7f28aebb97 somewhat less hacky... 2024-03-12 01:26:48 +01:00
griffi-gh 3a4b0eea66 well it somewhat works, build using terrible hacks 2024-03-12 01:23:26 +01:00
griffi-gh 969d0400d2 add docs 2024-03-12 01:07:17 +01:00
griffi-gh bd0364bde9 update interactable 2024-03-12 01:06:03 +01:00
griffi-gh 01b30c5979 signal stuff... 2024-03-12 00:29:26 +01:00
griffi-gh 7884de5560 it kinda works 2024-03-11 20:48:39 +01:00
griffi-gh daeefb0684 fix warning 2024-03-11 20:16:26 +01:00
griffi-gh 35a536a0bc owo 2024-03-11 20:16:01 +01:00
griffi-gh b0df6a3ea2 uwu 2024-03-11 18:53:24 +01:00
griffi-gh eab5072d1e add some helper fns 2024-03-11 18:48:46 +01:00
griffi-gh 027bc2c429 update input handling 2024-03-11 18:40:11 +01:00
griffi-gh 67b55ec3c1 stuff 2024-03-07 23:03:13 +01:00
griffi-gh 8729e8f345 move stuff out 2024-03-07 22:46:01 +01:00
griffi-gh 57913757aa change stuff 2024-03-07 02:40:11 +01:00
griffi-gh 43c61cd142 add extra helpers 2024-03-07 02:24:45 +01:00
griffi-gh 40ef524c5a Rename UiDirection to Direction 2024-03-07 02:06:14 +01:00
griffi-gh 45132db996 add Text::new 2024-03-07 02:05:39 +01:00
griffi-gh 1a6d79b2fc wip image, and required ctx stuff 2024-03-07 02:04:24 +01:00
griffi-gh 40c448276b add todo note 2024-03-07 01:19:45 +01:00
griffi-gh 7d2cf87201 apply bg image 2024-03-07 01:12:39 +01:00
griffi-gh 806e0ce8d1 api and doc stuff, add bg image prop to container 2024-03-07 01:11:53 +01:00
griffi-gh 1c55b1217b change bg color api again 2024-03-07 00:50:47 +01:00
griffi-gh eac62c9041 add a comment to fix stuff later 2024-03-06 21:28:35 +01:00
griffi-gh abae9d25fc use full init syntax 2024-03-06 21:28:12 +01:00
griffi-gh d4151e6c76 fix corrupted text bug 2024-03-06 21:14:40 +01:00
griffi-gh cd6d421909 fix some atlas bugs 2024-03-06 20:58:50 +01:00
griffi-gh 7a70b0ccb2 implement element wrapping 2024-03-06 20:39:25 +01:00
griffi-gh 758b28d235 remove non_exhaustive from Hints, upd docs 2024-03-06 17:52:34 +01:00
griffi-gh 68c0e8417a add should_wrap flag 2024-03-06 17:19:35 +01:00
griffi-gh 59271bd76d add wrap flag 2024-03-06 17:00:18 +01:00
griffi-gh c100555f4a remove comment 2024-03-05 23:47:56 +01:00
griffi-gh 48acb7ccf6 aaa 2024-03-05 23:47:40 +01:00
griffi-gh c0d6b24150 fix rounded rect gradient 2024-03-02 01:19:47 +01:00
griffi-gh 9f0809c61c update docs 2024-03-02 01:07:53 +01:00
griffi-gh b46db55f1b ui transforms 2024-03-02 00:33:02 +01:00
griffi-gh 52bfab6135 minor comment edit 2024-03-01 20:44:37 +01:00
griffi-gh c91e6ba50c idk a bunch of changes i forgor to commit 2024-03-01 18:21:02 +01:00
griffi-gh 0377f1e46d uwu 2024-02-29 23:53:01 +01:00
griffi-gh 99774e7f5f input handling stuff 2024-02-29 17:57:06 +01:00
griffi-gh ad0e6fd7e6 refactor 2024-02-29 16:02:05 +01:00
griffi-gh 778ae751e7 stuff 2024-02-29 02:19:29 +01:00
griffi-gh 407ac29d95 input upd (wip) 2024-02-29 01:15:29 +01:00
griffi-gh 16fc3219f9 fix offset 2024-02-27 22:57:46 +01:00
griffi-gh 3938d864f1 i think this looks better... 2024-02-27 22:38:43 +01:00
griffi-gh 4d100d8fe5 cfg gate the stuff 2024-02-27 22:18:55 +01:00
griffi-gh c9611346fb add color html 2024-02-27 20:31:16 +01:00
griffi-gh becbffc367 rename stuff 2024-02-27 20:31:12 +01:00
griffi-gh 74027c52d0 add docs, update stuff 2024-02-27 18:23:55 +01:00
griffi-gh a1bfbb51d0 update size macro, add docs to layout module 2024-02-27 17:56:46 +01:00
griffi-gh 0cd4e3a8a1 rename arg 2024-02-26 20:04:52 +01:00
griffi-gh b801ec8821 use derive_setters 2024-02-26 16:37:59 +01:00
griffi-gh 90f34a5dc4 api stuff 2024-02-26 16:33:55 +01:00
griffi-gh 9d7ed80be1 add checks 2024-02-26 15:19:13 +01:00
griffi-gh 30579928b0 eh... its better i guess. still needs a refactor 2024-02-26 15:13:03 +01:00
griffi-gh f8b2a4e15f a 2024-02-26 01:20:52 +01:00
griffi-gh 9aa61f392e wip refactor 2024-02-26 01:15:55 +01:00
griffi-gh 23dc81a921 minor changes 2024-02-25 15:59:12 +01:00
griffi-gh b064a2cb2b uwu 2024-02-25 15:43:38 +01:00
griffi-gh cdba2fedd8 kinda works now... 2024-02-25 04:02:10 +01:00
griffi-gh ae26a4d933 wip refactor 2024-02-24 23:32:09 +01:00
griffi-gh f61aa6734f x 2024-02-21 23:56:55 +01:00
griffi-gh f54b218cbb WIP single draw call architecture 2024-02-21 20:13:58 +01:00
griffi-gh 3bcbe0ae6e use usize max as the default font handle (to ensure it always stays invalid) 2024-02-21 11:20:45 +01:00
griffi-gh ff5658f44a fix builtin font handle thingy 2024-02-21 11:19:14 +01:00