Commit Graph

22 Commits

Author SHA1 Message Date
zxq5 1e7d513f26 updating apps to work with new API, working on new terminal app. a lot of stuff is broken rn :/ 2025-02-18 20:05:54 +00:00
zxq5 1ace354158 progress on terminal app 2025-02-18 12:34:03 +00:00
zxq5 c3c4633cf1 made significant upgrades to the rendering API. now need to move all applications to the new API and deprecate the old one. 2025-02-18 03:59:34 +00:00
FantasyPvP d77ce2bc47 idk 2024-12-10 00:36:45 +00:00
FantasyPvP 8f3a96c282 ran cargo fix 2024-11-23 21:38:11 +00:00
FantasyPvP 39d9b949e9 reorganised some stuff and started coding another game 2024-11-23 21:34:54 +00:00
FantasyPvP 69591e6bb2 made wish.com paper.io lol 2024-11-23 11:03:43 +00:00
FantasyPvP d5d9e031d5 - added a new API for switching between terminal and application mode
- removed unneeded imports to reduce the dumb amount of warnings from the compiler
- added a bounds check in frame.rs to avoid a panic when a frame tries to render a character out of bounds, instead returning an error
2024-03-22 00:12:15 +00:00
FantasyPvP 6505d219de - Created Dialog widget
- standard information dialog works
TODO:
  implement more complex dialogs where multiple options can be selected
2024-03-21 00:12:53 +00:00
FantasyPvP b16ce4a6f2 broken cbfa to fix for a while 2023-11-26 13:34:53 +00:00
FantasyPvP 140ac0ab32 updates
updated grapher to use new widtgets system (not working yet but close)

made a basic app using the widgets system

implemented CgTextEdit for CgLineEdit (now fully working, but there may be bugs so i'll address them tomorrow)
2023-11-24 00:40:27 +00:00
FantasyPvP 467a42a5fa continued to work on new UI library
- implemented CgStatusBar widget which is a specific version of the CgIndicatorBar widget with predefined fields

- std::io::Screen is now an enum that makes switching between display modes more intuitive

- created a basic CgLineEdit implementation that allows for a user to type in a character and have it re-render that widget

- other more minor changes like fixes for existing apps to work with new features
2023-11-23 20:29:51 +00:00
FantasyPvP 461c9d9c6a - got text boxes fully working
- this includes text wrapping not cutting words in half (can be disabled using a method on the text box)
- refactored frame.rs, cg_core.rs and cg_widgets.rs to avoid code reuse and duplication
- created a simplified unified interface for rendering frames to the screen using the Frame struct provided by frame.rs instead of Element, FrameGen, etc.
- moved all widgets from cg_core.rs to cg_widgets.rs
- the label widget now works
- also added CgIndicatorBar and CgIndicatorWidget widgets to eventually make a working status bar
- refactored all applications in the system to use the new api to render to the screen
2023-11-23 00:29:04 +00:00
FantasyPvP 84aaa90e66 new gui module text box implementation
starting to work on the new UI library, got labels and text boxes working as well as containers for widgets.

planning a big refactor
2023-11-22 21:07:00 +00:00
FantasyPvP d5e95433da .
.
2023-10-04 23:20:51 +01:00
FantasyPvP bf9c9be88d made a game
made a snake game and rewrote some rendering stuff again
2023-10-02 00:56:18 +01:00
FantasyPvP f0ee584c87 changed backspace functionality
backspace will now skip to the last real character on a line and skip over null characters
2023-10-01 03:18:57 +01:00
FantasyPvP 9e7335e05f idk
idk
2023-09-30 12:10:03 +01:00
FantasyPvP 49bc77e44a added the gigachad detector 2023-09-27 22:50:28 +01:00
FantasyPvP 45304c26d8 .
.
2023-04-29 02:11:02 +01:00
FantasyPvP 0c39711875 worked on rendering code
worked on code for libgui for rendering a user interface
2023-04-28 00:10:20 +01:00
FantasyPvP e491435dea ok
ok
2023-03-10 00:25:08 +00:00