Commit Graph

  • 0a62e5180a Add down arrow for ListBox Cyberarm 2022-05-03 20:01:34 -05:00
  • 31e909eb30 Probably fix layout issues caused by floating point errors where an element is wrapped when it has space (e.g. 2 elements with a width 0.5 not fitting properly) Cyberarm 2022-05-02 19:08:47 -05:00
  • 300e7c4e59 Implemented tiled mode for BackgroundImage and other improvements Cyberarm 2022-05-02 19:06:40 -05:00
  • be98fe47ad Fixed ListBox element menu getting cut off if it's near the bottom of the screen by stacking it ontop of the host element Cyberarm 2022-05-02 19:05:57 -05:00
  • a75afaf47a Added support for UI to have background_images, fixed TextBlock text overdrawing Cyberarm 2022-04-25 20:12:10 -05:00
  • d81df5f4e2 Moved min_width/height, max_width/height and fill control from Container into Element#dimensional_size so any element can use them Cyberarm 2022-04-25 16:48:17 -05:00
  • f2ea0d9942 Maybe final container fill mode fix? Cyberarm 2022-04-04 13:26:40 -05:00
  • 08d068f156 Fixed weirdness for Container dynamic fill mode Cyberarm 2022-04-04 10:08:39 -05:00
  • a4d02038c3 Fixes for Container's calculating fill size and for Flow's max_width Cyberarm 2022-04-03 13:06:10 -05:00
  • 37bdd6ef23 Added support for min/max width/height and for fill which dynamically sets elements width/height to the max available width for Flow parents and height for Stack parents Cyberarm 2022-04-03 11:07:31 -05:00
  • 24bd769a32 Bump version v0.20.0 Cyberarm 2022-03-05 14:43:50 -06:00
  • 2be5733bc1 Fixed Container not considering padding when clipping render area Cyberarm 2022-01-29 10:08:33 -06:00
  • c8734ae98b Container child elements that are not visible are no longer drawn Cyberarm 2021-12-24 17:00:02 -06:00
  • c35d587419 Fixed passing nil for :enabled state as boolean causing it to be set as true instead of false cyberarm 2021-12-22 14:58:17 -06:00
  • 153871e7f3 Improved performance a touch: fixed never clearing list of elements to recalculate unless a full gui recalcuate occurred, don't recalculate button/text if a full gui recalculate is requested, fixed typo: apend -> append cyberarm 2021-12-16 22:09:56 -06:00
  • cf91d4a083 Merge branch 'master' of https://github.com/cyberarm/cyberarm_engine Cyberarm 2021-12-03 15:33:38 -06:00
  • 35ad687d4c Reducce cpu usage by not using clip_to for each and every element Cyberarm 2021-12-03 15:33:32 -06:00
  • 54802e1254 Added support 'marquee' style progress bars i.e. non-linear progress bar with scrolling bar Cyberarm 2021-12-02 08:15:39 -06:00
  • 6cf4cd73dd Fixed toggling Element enabled state not visually shown Cyberarm 2021-11-18 15:37:57 -06:00
  • 5e5f8ba7ea Added set_color and set_font to Element- fixes image elements unable to change their color when hovered, fixes hovered text changing its color incorrectly Cyberarm 2021-11-18 13:11:02 -06:00
  • 63a51d9d2f Improved scroll_height calculation to adapt to how Flow's flow Cyberarm 2021-11-18 11:58:11 -06:00
  • 6af384536a Fixed locking up when performing text wrapping due to text width check not being satisfied Cyberarm 2021-11-17 22:30:30 -06:00
  • c1b25d2045 Fixed centered text with unequal margins/paddings/border thicknesses being offset, fixed text wrapping using parents #width (which includes padding and margins) instead of the correct #content_width (which is only the parents content width; which the text is part of) Cyberarm 2021-11-17 17:23:48 -06:00
  • a915a25699 Updated required gems, reimplemented text wrapping to use a proper binary search and correct inserting newlines in the wrong spot for certain text lengths Cyberarm 2021-11-16 23:35:49 -06:00
  • 0aa9b59316 Containers that need to be recalculated but will not affect their current size can request to have themselves directly recalculated on the next update (fixes scrolling triggering many unneed recalculations), list_box now excludes the currently selected item from the menu, probably fixed list_box callback being called twice instead of the correct once. Cyberarm 2021-11-15 10:17:49 -06:00
  • d2bf406d29 Bump version v0.19.1 Cyberarm 2021-09-23 14:36:19 -05:00
  • f82c101728 Fixed ListBox sometimes returning self in callback instead of self.value Cyberarm 2021-09-23 14:35:46 -05:00
  • 2f727e9bf2 Bump version v0.19.0 cyberarm 2021-09-22 09:23:24 -05:00
  • 24be9bfb29 Imported Console from I-MIC FPS Cyberarm 2021-06-26 13:12:33 +00:00
  • 5452d149c3 Possible fix for being able to click a button that isn't visible due to scrolling, by ensuring that the host container is hit before checking children. Cyberarm 2021-06-18 02:57:49 +00:00
  • cdee6548e3 Added support for 9 sliced backgrounds in UI, fixed events not propagating to subscribers if element threw :handled in its own event handler cyberarm 2021-06-04 03:00:31 +00:00
  • bd54fafc3f Added Text#text_width method, Text#width now returns value of Text#markup_width Cyberarm 2021-06-03 13:05:11 +00:00
  • a92d1ad746 Made Text account for shadow and border effects in width/height methods, made TextBlock support disabled state styling cyberarm 2021-06-03 01:00:13 +00:00
  • 1b080f9fb9 Use shorthand (&:method) for Element scroll_width/height max_scroll_width, possibly fix dimentional_size returning the wrong size when element has nonzero padding/margin/border_thickness Cyberarm 2021-05-31 01:03:50 +00:00
  • 8057bca818 Added rendered vertices count to OpenGLRenderer Cyberarm 2021-05-30 14:10:32 +00:00
  • c1310f3073 Renamed Text's shadow to border and added proper text shadow effect cyberarm 2021-05-29 00:10:44 +00:00
  • 850bb610bb Fixed GUI having a total recalculation whenever a style changed, made tooltip not be centered on mouse, removed duplicate loc from Text Cyberarm 2021-05-28 00:43:40 +00:00
  • 0b63986b64 Improved 9 slice background Cyberarm 2021-05-06 03:20:49 +00:00
  • 165fc6f307 Fixed draw_rect helper missing drawing mode argument, set max view distance to a large number Cyberarm 2021-04-25 23:22:58 +00:00
  • e3c8e3bcc2 Added a bunch of tweens to the Animator, replaced :ease_in_out tween for Intro state engine logo to :swing_to Cyberarm 2021-04-25 14:58:12 +00:00
  • 551a55f894 Add fade out to intro scene Cyberarm 2021-04-24 20:13:06 +00:00
  • 01292ead10 Bump version cyberarm 2021-04-19 19:26:08 +00:00
  • 9068a418c0 Bumpe version v0.18.0 cyberarm 2021-04-19 19:26:08 +00:00
  • 7ca6e1bc58 Update README cyberarm 2021-04-19 19:22:43 +00:00
  • a70f260bc6 Update README cyberarm 2021-04-19 19:17:10 +00:00
  • 8002708695 Updated Animator to be usable, added logo texture/image, 'finished' Intro state, added Window#shift_state cyberarm 2021-04-19 19:13:15 +00:00
  • 676545f3c7 Added wip engine intro state Cyberarm 2021-04-19 14:42:49 +00:00
  • 4b417f9ab7 More changes to how styles are applied, fixed bug where a Container would re-evaluate its build block when clicked, fixed background method in DSL having no effect, fixed edit line losing 'focus' when mouse moved out, misc. other changes and fixes. cyberarm 2021-03-27 20:10:46 -05:00
  • a70c106387 Added Link element which is basically a button without a border or background, WIP: Element border, margin, padding, and other styles are now easily changable; work is needed to make style changes survive a recalculation cyberarm 2021-03-22 21:10:06 -05:00
  • f662fabc56 Use GL_SRGB_ALPHA for textures Cyberarm 2021-03-29 08:13:59 -05:00
  • abb989f842 Added flags to use ffi-gosu optionally instead of always trying, made tooltip affected by theme (the last set theme in setup will be used to style the tooltip) Cyberarm 2021-03-12 08:33:16 -06:00
  • 1e0d2004b5 More adjustments to scrolling and scroll_top, added debug_draw to elements that draws a box around the element that is atop all rendered things cyberarm 2021-02-13 22:57:18 -06:00
  • 92dd63dc1d Probably fixed scrolling for real this time, added scroll_top and scroll_top = n methods cyberarm 2021-02-13 20:03:10 -06:00
  • 20970e5aa9 Bump version v0.17.1 cyberarm 2021-02-11 09:32:37 -06:00
  • 76eb1a85d5 Added focus event, elements can request focus cyberarm 2021-02-11 09:31:44 -06:00
  • e9d75d17bf Updated gosu version, bumped version v0.17.0 cyberarm 2021-02-10 12:19:47 -06:00
  • e8bb2cac17 Update bundler in gemspec cyberarm 2021-02-10 12:18:28 -06:00
  • 29fbac7140 Added Container#apend method, EditLine caret will now stay visible while typing, EditLine#value= now sets the value of @text_input Cyberarm 2021-02-09 17:41:29 -06:00
  • d050f63c2b Increased scroll speed and added window_size_changed event for containers that is thrown from the root container Cyberarm 2021-01-31 13:33:20 -06:00
  • af24fc8690 Added vertical scrolling support for containers (no scrollbar yet) Cyberarm 2021-01-31 09:44:46 -06:00
  • f63b893c70 Bump version v0.16.0 cyberarm 2021-01-18 14:01:29 -06:00
  • 5adc27feef Sync cyberarm 2021-01-18 14:00:29 -06:00
  • 62636158f7 Fixed word wrapping weirdness and made it the default text_wrap method from :none cyberarm 2021-01-16 19:43:49 -06:00
  • 2179e11ba1 Updated list box cyberarm 2021-01-07 10:12:14 -06:00
  • 1ac5e0695e Fixed Image element background and border not working, made button use Style as sole source of background and color colors cyberarm 2021-01-05 23:15:22 -06:00
  • 732dc2c957 Fixed new label dsl methods requiring options to be provided, upgraded Image to accept either a path or an image and to enable replacing image using #value= cyberarm 2021-01-05 20:39:13 -06:00
  • 886680ab31 Renamed Label to TextBlock, added Shoes text dsl methods; needs mroe refinements, made tooltip styleable. cyberarm 2021-01-05 17:31:31 -06:00
  • 0268a8a5fb Button element (and its decendents) can now be disabled cyberarm 2021-01-04 09:34:11 -06:00
  • 1c22c36d6b Include Common in Window cyberarm 2021-01-01 19:20:52 -06:00
  • 3e56d48556 Update dependencies, bump version v0.15.0 cyberarm 2020-12-31 07:48:44 -06:00
  • 0c9874c53b Added support for tiled 9 slice backgrounds cyberarm 2020-12-18 12:43:53 -06:00
  • 164a46c1fb Added Background Nine Slice (Not yet usable for ui widgets) cyberarm 2020-12-15 11:38:01 -06:00
  • 26dd688124 Ran rubocop -a Cyberarm 2020-12-14 16:04:31 -06:00
  • 2447dde1af Added rubocop config Cyberarm 2020-12-14 15:39:30 -06:00
  • d3ff7c1fc1 Added support for future borderless window option, added initial support for label word wrapping (needs more work), fixed toggle button checkmark not displaying due to changes in Label Cyberarm 2020-12-14 15:39:16 -06:00
  • 2d57d62bc2 Don't trigger a recalc when hiding/showing elements if they're already in that state Cyberarm 2020-12-09 19:11:28 -06:00
  • fb36436d79 Added color support to Image Cyberarm 2020-12-09 09:19:32 -06:00
  • 246e0c54b2 Fixed crashes when using EditBox with no content Cyberarm 2020-12-08 20:27:01 -06:00
  • d02c001989 Added download manager, added excon dependency cyberarm 2020-09-25 20:51:25 -05:00
  • 3ba635f157 Fixed ConfigFile not storing values deeper then one level, added markup_width to Text cyberarm 2020-09-24 10:47:55 -05:00
  • 695c77b183 Added support for Label text alignement, improved EditBox to correctly position caret and support mouse caret positioning, added debugging Container boundry (WIP) cyberarm 2020-09-09 09:51:18 -05:00
  • b06ceaabce Fixed crash if GuiState @mouse_over has no parent cyberarm 2020-08-28 08:37:24 -05:00
  • ce64b8a205 Implemented ListBox- Menu cyberarm 2020-08-21 15:56:11 -05:00
  • da4188764c Added min/max_view_distance to attr_accessor for PerspectiveCamera Cyberarm 2020-07-19 09:44:09 -05:00
  • d01e91c3fd Added support for draw mode to Text Cyberarm 2020-07-18 21:34:21 -05:00
  • 041cfcccaa Added a large portion of I-MIC-FPS's opengl rendering and model loading systems Cyberarm 2020-07-15 21:19:31 -05:00
  • d7dbcf8511 Added orthographic support to Transform Cyberarm 2020-07-10 14:51:02 -05:00
  • 2a8e852b15 Added support for passing a filter method/proc to EditLine Cyberarm 2020-06-23 09:51:36 -05:00
  • d392d8249d Added support for deciding text drawing method, more work on edit_box Cyberarm 2020-06-16 10:12:21 -05:00
  • 5d7e2028b1 Added support for image icon for ToggleButton, added initial implementation of EditBox, fixed a few ruby -w warnings by initializing select instance nilable variables, added clipboard support to EditLine, added drag selection to EditLine, added keyboard shortcuts to EditLine, GuiState now passes button_down/button_up callbacks to @focus Cyberarm 2020-06-16 00:16:13 -05:00
  • d902e5d111 Fixed EditLine not positioning caret correctly when clicked Cyberarm 2020-06-10 07:32:31 -05:00
  • 39964e5bd4 Added support for using an image in a button Cyberarm 2020-06-09 10:49:31 -05:00
  • 5b2a015421 Call recalulate less often to speed up gui updates, call root_container.recalculate a third time when recalculating gui. Gui calls recalculate 10x less when doing a full recalculate. Cyberarm 2020-06-09 09:11:57 -05:00
  • eb4d5d4d21 Use Gosu.clip_to to prevent elements from overdrawing Cyberarm 2020-06-08 09:01:10 -05:00
  • c83b204447 Removed debugging puts from EditLine Cyberarm 2020-06-08 05:48:30 -05:00
  • d0449c7b65 Add support back for fixed x and y positioning of elements, fixed theming not using deep_merge Cyberarm 2020-06-08 05:35:03 -05:00
  • a05ee57f6f Fixed EditLine text not visible if using dynamic width/height, fixed cursor in wrong position when at start/end Cyberarm 2020-06-07 13:18:03 -05:00
  • c3b227d6e7 Fix vector transform using 5th element instead if 15th Cyberarm 2020-06-07 12:36:37 -05:00
  • 7aaf37d43e Added Vector#multiply_transform, needs more testing. Cyberarm 2020-05-12 09:32:50 -05:00
  • 0850336e55 Bump version v0.14.0 Cyberarm 2020-05-06 22:01:15 -05:00