HookUI
Allows mod authors to inject their own UI into the existing CS2 game UI
Date uploaded | 8 months ago |
Version | 1.1.0 |
Download link | Cities2Modding-HookUI-1.1.0.zip |
Downloads | 23179 |
Dependency string | Cities2Modding-HookUI-1.1.0 |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
HookUI
Library and framework for mod authors to easily add their own mod UI, well integrated into the existing Game UI.
HookUI is some sort of UI framework/loader for Cities: Skylines 2 (C:S2). It replaces the default UI with a UI that provides hooks for mod-authors to inject their own UI components, makes it fit in with the existing game UI easily.
[!WARNING]
This is a early version of the loader/framework, expect dragons
The framework/loadah gives you the ability to write small little pieces of UI that you can use just as UI mods, or integrate with your own mod so you don't have to focus too much on UI code.
It consists of a few parts:
- C# / Game Engine
- HookUI Mod (
mod/
)- Loads files from other mods and puts them in place
- Binds currently available extensions to a value the Game UI can read
- Harmony patches to load the UI system and rewrite which directory the game UI uses
- HookUI Lib (
lib/
)- Serves as the API for mods to register themselves, so HookUI Mod can find all the extensions required to load
- HookUI Mod (
- JavaScript / Game UI (
ui_lib/
)- API - Sets
window
properties for mods to register themselves in the UI - Loader - Loads the mod extensions into the correct place
- Menu - A button in the top-left to enable/disable current panels
- API - Sets
Put another way:
- HookUIMod - C# mod that gets loaded in Cities: Skylines 2
- HookUILib - C# Library that gets used by mod authors
- HookUI Game UI - Elements for loading and enabling/disabling extensions inside the game
- HookUIFramework - JavaScript library with some utilties functions for writing Game UIs for Cities: Skylines 2
Requirements
- Cities: Skylines 2 (duh)
- BepInEx Unity Mono Version 5 or Version 6
Manual Installation (For players)
- Make sure BepInEx is installed
- Download latest release from GitHub - https://github.com/Captain-Of-Coit/hookui/releases
- Extract the ZIP archive
- Place
HookUI
directory inBepInEx\plugins
directory, within your game directory