Esempio n. 1
0
 public void initialize()
 {
     battleLog = new BattleLog();
     generalLog = new GeneralLog();
     chatLog = new ChatLog();
     frame = new Frame(Configurations.getInstance.logWindowDimensions,
                       Configurations.getInstance.logWindowPosition,
                       Configurations.getInstance.logWindowBorders);
     tabPanel = new TabPanel();
     tabPanel.currentOpenTabIndex = Configurations.getInstance.logTabPanel.currentOpenTabIndex;
     tabPanel.defaultColor = Configurations.getInstance.logTabPanel.defaultColor;
     tabPanel.position = Configurations.getInstance.logTabPanel.position;
     tabPanel.tabs = Configurations.getInstance.logTabPanel.tabs;
 }
Esempio n. 2
0
        public void drawFrame(Frame frame)
        {
            //Draw Top Boarder
            for (int t = frame.position.x + Configurations.getInstance.BORDER_SIZE;
                t < frame.position.x + (frame.dimensions.width - Configurations.getInstance.BORDER_SIZE);
                t++)
            {
                drawFrameChar(t, frame.position.y, frame.borders.topBorderColor, frame.borders.topBorder);
            }

            //Draw Left Boader
            for (int l = frame.position.y + Configurations.getInstance.BORDER_SIZE;
                l < frame.position.y + (frame.dimensions.height - Configurations.getInstance.BORDER_SIZE);
                l++)
            {
                drawFrameChar(frame.position.x, l,  frame.borders.leftBorderColor, frame.borders.leftBorder);
            }

            //Draw Right Boader
            for (int r = frame.position.y + Configurations.getInstance.BORDER_SIZE;
                r < frame.position.y + (frame.dimensions.height - Configurations.getInstance.BORDER_SIZE);
                r++)
            {
                drawFrameChar(frame.position.x + frame.dimensions.width - Configurations.getInstance.BORDER_SIZE,
                              r, frame.borders.rightBorderColor, frame.borders.rightBorder);
            }

            //Draw Bottom Boader
            for (int b = frame.position.x + Configurations.getInstance.BORDER_SIZE;
                b < frame.position.x + (frame.dimensions.width - Configurations.getInstance.BORDER_SIZE);
                b++)
            {
                drawFrameChar(b, frame.position.y + frame.dimensions.height - Configurations.getInstance.BORDER_SIZE,
                              frame.borders.bottomBorderColor, frame.borders.bottomBorder);
            }
        }