- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
int offset_800=0;
if(SCREEN_WIDTH == 800) offset_800 = 20;
addItem(TNM_GAMELOFT_LOG_GREEN_ITEM, done, complete_log[lang][0], TNM_ItemCoords[TNM_GAMELOFT_LOG_GREEN_ITEM][0]*((float)1200/(float)SCREEN_WIDTH)-35-offset_800/*-offset_shtamp*3*/, TNM_ItemCoords[TNM_GAMELOFT_LOG_GREEN_ITEM][1]*((float)720/(float)SCREEN_HEIGHT)/*-offset_shtamp*3*/, -1, ITEM_INVISIBLE)
->attachTo2dItem(pItemListBG);
addItem(TNM_GAMELOFT_LOG_RED_ITEM, done, complete_log[lang][1], TNM_ItemCoords[TNM_GAMELOFT_LOG_RED_ITEM][0]*((float)1200/(float)SCREEN_WIDTH)-35-offset_800/*-offset_shtamp*3*/, TNM_ItemCoords[TNM_GAMELOFT_LOG_RED_ITEM][1]*((float)720/(float)SCREEN_HEIGHT)/*-offset_shtamp*3*/, -1, ITEM_INVISIBLE)
->attachTo2dItem(pItemListBG);
//#ifdef WIN32
addItem(TNM_CHEAT_WIN, main_all, 30, TNM_ItemCoords[TNM_CHEAT_WIN][0],TNM_ItemCoords[TNM_CHEAT_WIN][1], 31, ITEM_INVISIBLE);
addItem(TNM_CHEAT_LOSE, main_all, 30, TNM_ItemCoords[TNM_CHEAT_LOSE][0],TNM_ItemCoords[TNM_CHEAT_LOSE][1], 31, ITEM_INVISIBLE);
//#endif
int offY=0;
int offset=0,
offsetmailX=0;
if(SCREEN_WIDTH ==800||SCREEN_WIDTH == 1024)
offset=2;
if(SCREEN_WIDTH==1366||SCREEN_WIDTH == 1440){
offY=4;
offset=2;
}
if( SCREEN_WIDTH==1680)
{
offY=7;
offset=2;
offsetmailX=60;
}
if( SCREEN_WIDTH==1920)
{
offY=7;
offset=5;
offsetmailX=60;
}
int y_800=0;
if(SCREEN_WIDTH == 1440) offsetmailX = 20;
if(SCREEN_HEIGHT == 800) {
offset = 2;
offY = 1;
}
if(SCREEN_WIDTH == 2560) offset=2;
if(SCREEN_WIDTH == 1024) offY+=1;
if(SCREEN_WIDTH == 800&&(Text::getInstance().getLanguage()== Text::LANG_SC||Text::getInstance().getLanguage()== Text::LANG_KR)) {
offY-=1;
y_800 = 3;
}
if((SCREEN_WIDTH == 1680||SCREEN_HEIGHT == 1080)&&(Text::getInstance().getLanguage()== Text::LANG_SC||Text::getInstance().getLanguage()== Text::LANG_KR)){
//offset-=2;
offY-=2;
}
if((SCREEN_HEIGHT == 1200)&&(Text::getInstance().getLanguage()== Text::LANG_SC||Text::getInstance().getLanguage()== Text::LANG_KR))
offY-=2;
addText(TNM_MESSAGE_SENDER_ITEM, STR_SENDER, SPRITE_FONT_S2_EG, TNM_ItemCoords[TNM_MESSAGE_SENDER_ITEM][0], TNM_ItemCoords[TNM_MESSAGE_SENDER_ITEM][1]/*-offY*/, ITEM_INVISIBLE, LEFT)
->attachTo2dItem(pItemListBG);
addText(TNM_MESSAGE_SUBJECT_ITEM, STR_SUBJECT, SPRITE_FONT_S2_EG, TNM_ItemCoords[TNM_MESSAGE_SUBJECT_ITEM][0], TNM_ItemCoords[TNM_MESSAGE_SUBJECT_ITEM][1]-offset-offY*1.5f+y_800, ITEM_INVISIBLE, LEFT)
->attachTo2dItem(pItemListBG);
addText(TNM_MESSAGE_TIME_ITEM, STR_RECEIVED, SPRITE_FONT_S2_EG, TNM_ItemCoords[TNM_MESSAGE_TIME_ITEM][0], TNM_ItemCoords[TNM_MESSAGE_TIME_ITEM][1]-offY*1.07f, ITEM_INVISIBLE, LEFT)
->attachTo2dItem(pItemListBG);
//addText(TNM_MAIL_TITLE_ITEM, "Sender: \nRecieved: \nSubject: ", fontS, TNM_ItemCoords[TNM_MAIL_TITLE_ITEM][0], TNM_ItemCoords[TNM_MAIL_TITLE_ITEM][1], ITEM_INVISIBLE, LEFT|TOP);
int space = lang == Text::LANG_IT ? 10 : 0;
if(lang == Text::LANG_KR)
space = 30;
int spaceY=0;
if(SCREEN_WIDTH!=1680&&SCREEN_WIDTH!=1920)
switch( pGame->getCurrentLanguage() )
{
case Text::LANG_KR:
spaceY = 2;
break;
case Text::LANG_SC:
spaceY = 2;
break;
case Text::LANG_JP:
spaceY = 2;
break;
}
addText(TNM_MAIL_TITLE1_ITEM, m_mailTitle, SPRITE_FONT_S2_EG, TNM_ItemCoords[TNM_MAIL_TITLE1_ITEM][0] + space, TNM_ItemCoords[TNM_MAIL_TITLE1_ITEM][1], ITEM_INVISIBLE, LEFT|TOP)
->attachTo2dItem(pItemListBG);
addText(TNM_MAIL_TITLE2_ITEM, m_mailTitle, SPRITE_FONT_S2_EG, TNM_ItemCoords[TNM_MAIL_TITLE2_ITEM][0] + space, TNM_ItemCoords[TNM_MAIL_TITLE2_ITEM][1]-offY*1.07f, ITEM_INVISIBLE, LEFT|TOP)
->attachTo2dItem(pItemListBG);
addText(TNM_MAIL_TITLE3_ITEM, m_mailTitle, SPRITE_FONT_S2_EG, TNM_ItemCoords[TNM_MAIL_TITLE3_ITEM][0] + space, TNM_ItemCoords[TNM_MAIL_TITLE3_ITEM][1]-offset-offY*1.5f+spaceY, ITEM_INVISIBLE, LEFT|TOP)
->attachTo2dItem(pItemListBG);
Еще один малый кусок. По аналогии с выложеным ранее.