Finally, a repo name that isn't an acronym, waow.
Offers general purpose classes/utilities I made for using in my Geode mods!
CMakeLists.txt shamelessly taken and modified from cue, another Geode library.
- Actions
ContentTo
- Layouts
ListLayout- a layout you can quickly apply to, for example, ageode::ScrollLayer::m_contentLayerfor a nice, scrollable list
- Custom settings
WideTitleV3- info titles in settings
- Utilities
random.hpp
- Convenience classes
LimitedTextArea- a text display node that is similar to ageode::TextInputin appearance, but is not intended for text input; setting its string to a string longer than its maximum configured length will add ellipsis at the end, massively helping render times ofcocos2d::CCLabelBMFontused in itPaddingforgeode::LayoutsQuickNotification, ageode::Notificationderivative that has no queue, allowing them to quickly fade away without stacking + a color tags integrationScrollBorders- an accurately positioned border for lists, similar to level listsScrollTextArea- anMDTextArea-like display with no Markdown support and a color tags integrationSeparator- a visual separator; similar toedit_vLine_001.png, but with customizable length, width, fade length and color
Add the following lines to your CMakeLists.txt:
CPMAddPackage("gh:Fryy55/amber@1.0.0")
target_link_libraries(${PROJECT_NAME} amber)Replace 1.0.0 with the version you want to use.
You can also use a specific tag/branch/commit of amber like this:
CPMAddPackage("gh:Fryy55/amber#b492c63") - tag/branch/commit hash
Simply include headers (e.g. #include <amber/QuickNotification.hpp>) and use them in your mods!
There is also a general "include everything" header (<amber/amber.hpp>), as well as grouped headers (e.g. <amber/utils/utils.hpp>).
Tip
Normally, every utility/class/etc. is located in the amber::* namespace, however, using namespace geode::prelude also uses amber's namespace, so you can use these classes directly if you're used to geode::prelude.
This project is distributed under the Apache-2.0 License.
See LICENSE for permissions, conditions and limitations.