コード例 #1
0
 void createTexts()
 {
     withYouInAMoment = GLMethods.generateString(Program.theClientSetup.oneMomentText, 50, System.Drawing.Color.Azure);
     purchase         = GLMethods.generateString(Program.theClientSetup.purchaseText, 70, System.Drawing.Color.White);
     thanks           = GLMethods.generateString(Program.theClientSetup.thankYou, 80, System.Drawing.Color.White);
     available        = GLMethods.generateString(Program.theClientSetup.forSaleText, 80, System.Drawing.Color.White);
 }
コード例 #2
0
        public SetupScreenRenderer()
        {
            background = new ImageTexture(Properties.Resources.background);

            title = GLMethods.generateString("Admin Setup", 80, System.Drawing.Color.Coral);
            setupPasscodesButton = new Button("Setup Passcodes", 30, System.Drawing.Color.Azure, System.Drawing.Color.White, 30, 120);
            setupProductsButton  = new Button("Setup Products", 30, System.Drawing.Color.LightSalmon, System.Drawing.Color.White, 30, 180);
            viewAnalyticsButton  = new Button("View Analytics", 30, System.Drawing.Color.LightSteelBlue, System.Drawing.Color.White, 30, 240);
            setupScreensButton   = new Button("Setup Screens", 30, System.Drawing.Color.LightGreen, System.Drawing.Color.White, 30, 300);
            editSalesButton      = new Button("Edit Sales", 30, System.Drawing.Color.White, System.Drawing.Color.White, 380, 120);

            salesScreenButton = new Button("Return to Sales", 30, System.Drawing.Color.White, System.Drawing.Color.White, 20, 650);

            setupPasscodesButton.onClick += editPasscodesClicked;
            setupProductsButton.onClick  += editProductsClicked;
            viewAnalyticsButton.onClick  += analyticsClicked;
            setupScreensButton.onClick   += editScreensClicked;
            editSalesButton.onClick      += editSalesClicked;

            theButtons.Add(setupProductsButton);
            theButtons.Add(setupPasscodesButton);
            theButtons.Add(viewAnalyticsButton);
            theButtons.Add(salesScreenButton);
            theButtons.Add(setupScreensButton);
            theButtons.Add(editSalesButton);

            salesScreenButton.onClick += returnToSales;
        }
コード例 #3
0
        public SalesScreenRenderer()
        {
            background = new ImageTexture(Properties.Resources.background);
            title      = GLMethods.generateString("Sales", 80, System.Drawing.Color.White);

            foreach (Model.Product p in Program.theDatabase.allProducts)
            {
                p.loadImage();
            }

            setupButton          = new Button("Admin Setup", 30, System.Drawing.Color.White, System.Drawing.Color.White, 10, 650);
            setupButton.onClick += setupClicked;
            theButtons.Add(setupButton);
            lockButton          = new Button("Lock", 30, System.Drawing.Color.White, System.Drawing.Color.White, 280, 650);
            lockButton.onClick += lockClicked;
            theButtons.Add(lockButton);
            completeSaleButton          = new Button("Finish Sale", 30, System.Drawing.Color.White, System.Drawing.Color.White, 400, 650);
            completeSaleButton.onClick += completeSaleClicked;
            theButtons.Add(completeSaleButton);
            makeFreeButton          = new Button("Make Free", 30, System.Drawing.Color.White, System.Drawing.Color.White, 400, 600);
            makeFreeButton.onClick += makeFreeClicked;
            theButtons.Add(makeFreeButton);

            foreach (Model.Product z in Program.theDatabase.allProducts)
            {
                if (!z.deleted)
                {
                    ProductButton p = new ProductButton(z.ID, 0, 0, Properties.Resources.UnknownItem);
                    p.onClick += productButtonClicked;
                    productButtons.Add(p);
                }
            }
            updateItems();
        }
コード例 #4
0
 public Button(string text, int size, System.Drawing.Color theColor, System.Drawing.Color borderColor, int x, int y)
 {
     texture          = GLMethods.generateString(text, size, theColor);
     this.borderColor = borderColor;
     this.x           = x;
     this.y           = y;
     this.theColor    = theColor;
 }
コード例 #5
0
 public SoldScreenRenderer()
 {
     title      = GLMethods.generateString("Sold!", 80, System.Drawing.Color.White);
     background = new ImageTexture(Properties.Resources.background3);
 }