示例#1
0
Dashboard::Dashboard()
    :left_pixmap("image/system/dashboard-equip.png"), right_pixmap("image/system/dashboard-avatar.png"),
    selected(NULL), player(NULL), avatar(NULL),
    weapon(NULL), armor(NULL), defensive_horse(NULL), offensive_horse(NULL),
    view_as_skill(NULL), filter(NULL)
{
    createLeft();
    createMiddle();
    createRight();

    int left_width = left_pixmap.width();
    int middle_width = middle->rect().width();
    int right_width = right->rect().width();
    min_width = left_width + middle_width + right_width;

    setMiddleWidth(middle_width);

    sort_type = 0;
}
示例#2
0
Dashboard::Dashboard()
    :left_pixmap(QString("%1/dashboard-equip.png").arg(Config.SkinPath)), right_pixmap(QString("%1/dashboard-avatar.png").arg(Config.SkinPath)),
    selected(NULL), avatar(NULL),
    weapon(NULL), armor(NULL), defensive_horse(NULL), offensive_horse(NULL),relic(NULL), //modify by ce add
    view_as_skill(NULL), filter(NULL)
{
    createLeft();
    createMiddle();
    createRight();

    death_item = NULL;

    int left_width = left_pixmap.width();
    int middle_width = middle->rect().width();
    int right_width = right->rect().width();
    min_width = left_width + middle_width + right_width;

    setMiddleWidth(middle_width);

    sort_type = 0;
}
示例#3
0
Dashboard::Dashboard(QGraphicsItem *button_widget)
    :left_pixmap("image/system/dashboard-equip.png"), right_pixmap("image/system/dashboard-avatar.png"),
    button_widget(button_widget), selected(NULL), avatar(NULL),
    weapon(NULL), armor(NULL), defensive_horse(NULL), offensive_horse(NULL),
    view_as_skill(NULL), filter(NULL)
{
    createLeft();
    createMiddle();
    createRight();

    death_item = NULL;

    if(button_widget)
        button_widget->setParentItem(this);

    int middle_width = middle->rect().width();
    setMiddleWidth(middle_width);

    sort_type = 0;

    animations = new EffectAnimation();
}