Ich habe Episode 10 meiner Videoreihe “Let’s Code mit Jens” veröffentlicht:
Kurzbeschreibung:
Weiter geht es mit dem Kontextmenü für Städte.
In dieser Folge lege ich die View Klassen zur Steuerung des Kontextmenüs an.
Je nachdem, ob eine Stadt ein Standort des Unternehmens ist, werden unterschiedliche Elemente ein- bzw. ausgeblendet. Gegen Ende der Folge kann prototypisch das Kontextmenü im Spiel bedient werden.
Es fehlt aber noch, dass sich das Kontextmenü bei Klick auf eine Stadt öffnet und auch wieder schließt, wenn man eine Stadt ein zweites Mal anklickt. Das werde ich nächste Folge behandeln.
Zur Erinnerung – Kontextmenü für Städte:
Städte sollen ein Kontextmenü erhalten.
Städte mit Filiale sollen Schaltflächen bieten, um den Posteingang der Stadt zu öffnen und LKWs zu versenden,
Städte ohne Filiale sollen eine Schaltfläche bieten, um eine Filiale in der Stadt zu eröffnen.
I released episode 10 of my German series “Let’s Code mit Jens”: https://youtu.be/g9ZTd7ldrRU
Short description:
I continue the work at the context menu of cities.
At this episode I create the view classes, which control the behavior of the context menu. This means, the context menu will display different elements dependent on the city being a branch office of the cooperation. At the end of the episode it is possible to use the context menu prototypically.
The context menu won’t open on a click on the city and won’t close on a second click on the city yet. I will implement this at the next episode.
Quick reminder for context menu of cities:
Every city gets its context menu.
The context menu of a city, which locates a branch office, gets buttons to open a mailbox and to send trucks.
The context menu of a city without branch office gets a button to open a branch office in this city.