Exemplo n.º 1
0
        private void InitTaskbar()
        {
            //render bottom bar
            footer = Access.newRect(0, C.Y_MAX - 40, C.X_MAX, 40, UIColor.DarkGray);

            //little seperator line above icons
            seperator = Access.newRect(0, C.Y_MAX - 40, C.X_MAX, 2, UIColor.Gray);

            //announcements button
            announce = new SRButton(C.X_MID - 176, C.Y_MAX - 36, 32, 32, new Selector("AnnounceFunc"), "button_announcements");

            //tutor button
            tutor = new SRButton(C.X_MID - 104, C.Y_MAX - 36, 32, 32, new Selector("TutorFunc"), "button_tutor");

            //forum button
            forum = new SRButton(C.X_MID - 32, C.Y_MAX - 36, 32, 32, new Selector("ForumFunc"), "button_forum");

            //grades button
            grades = new SRButton(C.X_MID + 40, C.Y_MAX - 36, 32, 32, new Selector("GradesFunc"), "button_grades");

            //profile button
            profile = new SRButton(C.X_MID + 112, C.Y_MAX - 36, 32, 32, new Selector("ProfileFunc"), "button_profile");

            TaskbarInit = true;
        }
Exemplo n.º 2
0
        private void InitHeader()
        {
            settings = new SRButton(C.X_MAX - 74, 12, 32, 32, new Selector("SettingsFunc"), "button_settings");
            bars     = new SRButton(C.MOX, C.MOY + 16, 32, 32, new Selector("BarsFunc"), "button_bars");
            logo     = new UIImageView(UIImage.FromBundle("main_logo"));
            logoBack = Access.newRect(0, 0, vc.ViewWidth, 48, UIColor.Black);

            HeaderInit = true;
        }