widgets
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
package pncdsl
|
||||
|
||||
import "image/color"
|
||||
|
||||
// Theme is a registry-stored entity carrying every color the built-in
|
||||
// widgets read. Multiple themes can be registered; the active one is
|
||||
// addressed by name on the Game.
|
||||
type Theme struct {
|
||||
Name string
|
||||
|
||||
PanelBG color.Color
|
||||
StatusText color.Color
|
||||
FlashText color.Color
|
||||
|
||||
VerbButtonBG color.Color
|
||||
VerbButtonSelectedBG color.Color
|
||||
VerbButtonText color.Color
|
||||
|
||||
InventorySlotBG color.Color
|
||||
InventorySlotSelectedBG color.Color
|
||||
|
||||
SpeechBubbleBG color.Color
|
||||
SpeechDefaultText color.Color
|
||||
|
||||
DialogBG color.Color
|
||||
DialogBorder color.Color
|
||||
DialogChoiceBG color.Color
|
||||
DialogChoiceHover color.Color
|
||||
DialogSpeaker color.Color
|
||||
DialogText color.Color
|
||||
|
||||
EndCardBG color.Color
|
||||
EndCardText color.Color
|
||||
|
||||
CursorColor color.Color
|
||||
HotspotOutline color.Color
|
||||
|
||||
// SceneBackdrop is painted before the scene background. Useful for
|
||||
// letterboxing or filling areas not covered by a smaller backdrop.
|
||||
SceneBackdrop color.Color
|
||||
}
|
||||
|
||||
func (t Theme) GetName() string { return t.Name }
|
||||
func (t Theme) TypeLabel() string { return "theme" }
|
||||
|
||||
type ThemeManager = Manager[Theme]
|
||||
Reference in New Issue
Block a user