Skip to content
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.

First UI pass - Leader sidebar #17

Open
erlend-sh opened this issue Dec 10, 2020 · 0 comments
Open

First UI pass - Leader sidebar #17

erlend-sh opened this issue Dec 10, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@erlend-sh
Copy link
Contributor

erlend-sh commented Dec 10, 2020

The first key UI addition in the game will be the sidebar menu, featuring all the Leaders in play.

shotcaller-ui-mockup

Each leader is listed with a number of UI elements:

shotcaller-profile

⚔️ 🛡️ ⏳ 👜

  • Avatar
  • Coins
  • Level (not yet present in mockup)
  • Name
  • Health Points
  • Mana Points
  • Experience Points (maybe this would be a plain number next to coins instead)
  • Offensive items
  • Defensive items
  • Consumables
  • Store button (won't be functional until Item purchasing #16 arrives).

UI System Basics

The ui system will draw any entity that has either a Sprite or SpriteIndex Component.

SpriteIndex is used to hold the index of the 2d sprite in the spritesheet.

Sprite is used for text-based rendering (it holds the letter and colors).

For the rest of the ui, we are just using BTerm's rendering (term.print("text content", position_x, position_y").

@erlend-sh erlend-sh added the enhancement New feature or request label Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant