コード例 #1
0
        void InitializeForm()
        {
            Map = new MapPlayer("map.dat");

            colors      = Palitra.Normal();
            yesButton   = new Button(colors, 1, false);
            noButton    = new Button(colors, 2, false);
            alterButton = new Button(colors, 3, text: Map.CurrentPoint.AlterText);
            buttonList.Add(yesButton);
            buttonList.Add(noButton);
            buttonList.Add(alterButton);
            table = new Billboard(colors);
            table.ChangeText(Map.CurrentPoint.TableText, Map.CurrentPoint.TextSize);
        }
コード例 #2
0
        private void UpdateMap(int answer)
        {
            Map.MoveTo(answer);

            TextPoint point = Map.CurrentPoint;

            yesButton.Hide(point.NextTo(1) == 0 || point.IsFinal);
            noButton.Hide(point.NextTo(2) == 0 || point.IsFinal);
            alterButton.Hide(point.NextTo(3) == 0 && !point.IsFinal);
            alterButton.ChangeAlterText(point.AlterText);

            colors = Palitra.GetColors(point.ColorPack);
            foreach (var button in buttonList)
            {
                button.ChangeColor(colors);
            }

            table.ChangeText(point.TableText, point.TextSize);
            table.ChangeColor(colors);
        }