|
|
@ -77,7 +77,7 @@ struct ClickerUI { |
|
|
|
"[FoodBowl|_|*%(300,400)clicker|_|_|_]" |
|
|
|
"[FoodBowl|_|*%(300,400)clicker|_|_|_]" |
|
|
|
"[WaterBowl|_|_ |_|_|_]" |
|
|
|
"[WaterBowl|_|_ |_|_|_]" |
|
|
|
"[Mood|_|_ |_|_|_]" |
|
|
|
"[Mood|_|_ |_|_|_]" |
|
|
|
"[_|_|_ |_|_|_]" |
|
|
|
"[Money|_|_ |_|_|_]" |
|
|
|
"[Treat|Food|Water|Pet|Work]"); |
|
|
|
"[Treat|Food|Water|Pet|Work]"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -160,13 +160,15 @@ struct WorkComputerUI { |
|
|
|
|
|
|
|
|
|
|
|
WorkComputerUI() { |
|
|
|
WorkComputerUI() { |
|
|
|
$gui.position(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT); |
|
|
|
$gui.position(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT); |
|
|
|
$gui.layout("[_|*%(300)computer|_|_|_]"); |
|
|
|
$gui.layout("[computer]"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void init() { |
|
|
|
void init() { |
|
|
|
|
|
|
|
$gui.set<guecs::Background>($gui.MAIN, {$gui.$parser}); |
|
|
|
|
|
|
|
|
|
|
|
auto computer = $gui.entity("computer"); |
|
|
|
auto computer = $gui.entity("computer"); |
|
|
|
$gui.set<guecs::Sprite>(computer, {"work_computer"}); |
|
|
|
|
|
|
|
$gui.set<guecs::Label>(computer, {L"Work Computer"}); |
|
|
|
$gui.set<guecs::Label>(computer, {L"Work Computer"}); |
|
|
|
|
|
|
|
$gui.set<guecs::Sprite>(computer, {"work_computer"}); |
|
|
|
$gui.set<guecs::Clickable>(computer, { [&](auto, auto) { |
|
|
|
$gui.set<guecs::Clickable>(computer, { [&](auto, auto) { |
|
|
|
GO_TO_WORK = false; |
|
|
|
GO_TO_WORK = false; |
|
|
|
fmt::println("Leaving Work!"); |
|
|
|
fmt::println("Leaving Work!"); |
|
|
|