Type: Client mod
Mod Name: Floating Framework
Categories: framework, ui
Made for build: 82369
Last Updated: 2015/06/07
Latest version: 2.2
Basic Description: Framework for creating draggable UI containers
Some mods conflict with each other, due to the nature of modding in Planetary Annihilation. Typically, mods conflict when they alter the same files of the game using a technique called shadowing. When this happens, only one of the mods changes are applied to that file; likely breaking the other mod entirely, or stopping it from working as intended. Server mods are the most likely to conflict with one another, as shadowing unit data files is the dominant method of creating server mods. This section outlines what mods probably conflict with this one, it's not exhaustive and may (rarely) contain false positives.
No conflicts on record, this mod probably doesn't conflict with any other mods currently on PAMM.
This section is updated manually, which I aim to do once a month. The last time it was updated is the last time modconflicts.json was updated in this github repository.
A framework, allowing other mods to create draggable frames easily. As well as ease of creation, this framework also provides other niceties including:
- Floating frames can snap to other floating frames and the edge of the screen
- Frames can be created on demand, or with a setting from the settings menu
- Frames keep their relative position on window resize
- Frames can remember their position
This provides a level of polish that could not be achieved without a centralised framework. Another benefit is if there's a breaking change to frame creation, it only needs to be fixed in the framework, naturally propogating to the mods which use the framework.
This framework is highly recommended. It is also one of the most downloaded mods.
As a framework it's hard to show images of it in action. Maybe one day there'll be a little tutorial video on using this framework, but for now here's a sample of mods that use the floating framework:
- Initial release
- Added 'center' offset option
- Removed 'ignoreMouse' css class
- Fixed 'screen resize before frame moved' bug
- Set mod priority to 20
- Fixed 'offset without left/top failed to set' bug
- Fixed 'rememberPosition = false not working' bug
- Fixed 'initial position not correct' bug
- Setting delayResize now makes frame visible only after the first resize
- x and y screen percentages clamped to [0, 1]
- Update to use new mod format
- Fix bug where frames reverted to [0,0], when reset with width/height set to auto