Just a little barebones app written by CompuCat to test Chesto, the GUI library behind the Homebrew App Store. Targeting PC at first, but the eventual goal is to make this a test app to:
- Validate any Chesto platform
- Test new Chesto features
- Serve as an example "How to build for Chesto" app.
Modified by vgmoose to newer Chesto APIs and syntax.
chestotesto.webm
Features demonstrated:
- TextElements
- Buttons
- ProgressBar
- ImageElement (including rotation)
- NetImageElement (fetches an image from the internet, with a local fallback)
- Background color fading
- Constraint system for positioning
- How input processing works
- Basic Screen structure
Chesto things not yet implemented:
- ListElement
- Containers
- Keyboard/text input
- Dropdowns
- Animations
- Music
- Pressing (A) progresses the progress bar.
- Pressing (B) exits ChestoTesto.
- Pressing up or down controls the speed of the scroller. (So does plus/minus...or start/select.)
- Pressing (X) does the same thing as pressing the dumb button...and why on earth would you press the dumb button?
v0.0.3: The logo at the top is a NetImageElement, which fetches an image from the internet and displays it. If the download fails, it falls back to a local image Code has been updated for the newer Chesto API, which uses smart pointers, lambdas, and constraints
v0.0.2: Updated for RootDisplay changes, and to use the new Chesto Makefile system
(This text is also in the bottom scroller.)
Technical lowdown v0.0.1: All the text pieces (including this scroller) are TextElements. This scroller is also an annoyingly wide TextElement - too large to be contained in a single texture, so it's stored as a giant surface and there's some funky on-the-fly cropping instead going on. If you're reading this, then text rendering, font loading, and large surfaces all work! The buttons are...well, Buttons; you can test InputEvents by interacting with them. Pressing (A) should also let you test the ProgressBar in the center of the screen. The spinning check mark is an ImageElement with a brand-new Chesto feature...rotation! Background colors are just a constant HSV fade modifying the RootDisplay every loop. That's about it!
This is kinda demosceney, so greetings to: vgmoose, rw, quarky, crc32, pwsincd, Whovian9369, and the rest of 4TU staff and community, plus satelliteseeker, lft, and probably somebody I'm forgetting.
This is CompuCat signing off. ~~
#Install dependencies on Ubuntu/Debian-alikes
sudo apt-get install libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-gfx-dev gcc g++ git
git clone --recursive https://gitlab.com/4TU/chestotesto
cd chestotesto
make
This software is licensed under the MIT License.