Exemplo n.º 1
0
BriefMenu::BriefMenu(MenuManager * m) :
Menu(m, "brief", "mbrief.dat", "mbrieout.dat"),
start_line_(0) {
    
    addStatic(148, 35, "#BRIEF_TITLE", FontManager::SIZE_4, true);
    txtTimeId_ = addStatic(500, 9, "", FontManager::SIZE_2, false);       // Time

    // Briefing scroll button
    nextButId_ = addImageOption(461, 316, KEY_F6, Sprite::MSPR_RIGHT_ARROW2_D, Sprite::MSPR_RIGHT_ARROW2_L);
    prevButId_ = addImageOption(427, 316, KEY_F7, Sprite::MSPR_LEFT_ARROW2_D, Sprite::MSPR_LEFT_ARROW2_L, false);

    // Accept button
    addOption(17, 347, 128, 25, "#MENU_ACC_BUT", FontManager::SIZE_2, KEY_F3, "select");
    // Map button
    addOption(148, 347, 99, 25, "#BRIEF_MAP", FontManager::SIZE_2, KEY_F4, "map");
    // Main menu button
    addOption(500, 347,  128, 25, "#MENU_MAIN_BUT", FontManager::SIZE_2, KEY_F5, "main");

    // Money
    txtMoneyId_ = addStatic(500, 87, 127, "0", FontManager::SIZE_2, false);     // textfield
    // Info
    infosButId_ = addOption(500, 118, 127, 10, "#BRIEF_INFO", FontManager::SIZE_2, KEY_F1); // info button
    txtInfoId_ = addStatic(500, 140, 127, "0", FontManager::SIZE_2, false);
    // Enhancement
    enhButId_ = addOption(500, 169, 127, 10, "#BRIEF_ENH", FontManager::SIZE_2, KEY_F2);
    txtEnhId_ = addStatic(500, 195, 127, "0", FontManager::SIZE_2, false);

    setParentMenu("map");
}
Exemplo n.º 2
0
QQuickMenuBase::~QQuickMenuBase()
{
    if (parentMenu())
        parentMenu()->removeItem(this);
    setParentMenu(0);
    if (m_platformItem) {
        delete m_platformItem;
        m_platformItem = 0;
    }
}
Exemplo n.º 3
0
BriefMenu::BriefMenu(MenuManager * m, MapMenu * mapMenu) :
Menu(m, "brief", "mbrief.dat", "mbrieout.dat"), map_menu_(mapMenu),
orig_pixels_(0), cur_miss_(0), start_line_(0), info_level_(1),
enhance_level_(0), mission_(0) {
    addStatic(148, 35, "MISSION BRIEF", 3, true);
    addOption(538, 118, "INFO", 1, KEY_F1, NULL);
    addOption(518, 169, "ENHANCE", 1, KEY_F2, NULL);
    addOption(461, 320, "\003", 1, KEY_F6, NULL);
    addOption(427, 320, "\002", 1, KEY_F7, NULL, false);
    addOption(43, 352, "ACCEPT", 1, KEY_F3, "select");
    addOption(173, 352, "MAP", 1, KEY_F4, "map");
    addOption(535, 352, "MENU", 1, KEY_F5, "main");
    setParentMenu("map");
}