Beispiel #1
0
 private void rowClick(ref DataPool worldData, RowInfoInitializer rowInfo)
 {
     if (rowInfo.Type.Equals(RowInfo.Type.Region))
     {
         loadRegion(rowInfo.ID);
         listController.addRows(MapMenuUtils.generateTownRowInfos(rowInfo.ID, ref worldData));
         listController.focusOnList();
     }
 }
Beispiel #2
0
 private void loadRegion(int regionIndex)
 {
     regionDrawer.setActive(false);
     regionDrawer.toggleLegend(false);
     mapDrawer.setActive(true);
     mapDrawer.drawRegion(ref worldData, regionIndex);
     mapState = MapState.Region;
     listController.addRows(MapMenuUtils.generateTownRowInfos(regionIndex, ref worldData));
     listController.focusOnList();
     cursor.setMovement(0.04f);
 }
Beispiel #3
0
 private void loadRegion()
 {
     if (cursor.CurrentTile != null)
     {
         if (cursor.CurrentTile.ID >= 0)
         {
             regionDrawer.setActive(false);
             regionDrawer.toggleLegend(false);
             mapDrawer.setActive(true);
             mapDrawer.drawRegion(ref worldData, cursor.CurrentTile.ID);
             mapState = MapState.Region;
             listController.addRows(MapMenuUtils.generateTownRowInfos(cursor.CurrentTile.ID, ref worldData));
             listController.focusOnList();
             cursor.setMovement(0.04f);
         }
     }
 }