⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 label.java

📁 国外人写的操作感挺好的一款滑雪游戏.结构也比较清楚
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
// Copyright (c) 2004 Venan Entertainment, Inc. All rights reserved.
//
// Venan Entertainment, Inc.,  Middletown, Connecticut 06457
// http://www.venan.com
//



import javax.microedition.lcdui.*;

public class Label extends Drawable
{
// Copyright (c) 2004 Venan Entertainment, Inc. All rights reserved.
//
// Venan Entertainment, Inc.,  Middletown, Connecticut 06457
// http://www.venan.com

//#ifndef _CommonInclude_H

//#ifndef _resource_H

// RESOURCE FILES
// RESFILE_AUDIO				"/A"

// RESFILE_MENU					"/X"
//#ifdef _IS_NokiaS60
//
////#define RES_SPLASHBRAND			0
////#define RES_SPLASHVENAN			1
////#define RES_SPLASHMFORMABK		2
////#define RES_SPLASHMFORMAFR		3
////#define RES_SPLASHMFORMASPORTS	4
////#define RES_SPLASHGAME			5
//
////#define RES_ARROWSUD			0
////#define	RES_ARROWSLR			2 
////#define RES_MENULOGO			4
////#define RES_MENUBOTTOM			6
////#define RES_MENUTOP				8
//
//// RESFILE_COMMON				"/E"
////#define RES_SIGN1				0
////#define RES_SIGN2				1
////#define RES_SKY					2
////#define RES_TREE				3
////#define RES_TREESHADOW			4
////#define RES_TREESFAR			5
////#define RES_CROWD				6
////#define RES_CLOCK_DIGITS		7
////#define RES_DOWNHILL			8
//
//#ifdef _OPENING_CEREMONY
//// RESFILE_OPENING				"/O"
////#define RES_INTRO_RUN			0
////#define	RES_INTRO_RUN_DAT		2
////#define RES_INTRO_APPROACH		3
////#define RES_INTRO_APPROACH_DAT	5
////#define RES_INTRO_LIGHT			6
////#define RES_INTRO_LIGHT_DAT		8
////#define RES_INTRO_STAIRS		9
////#define RES_INTRO_FIREPLACE		10
////#define RES_INTRO_FIRE			11
//#endif
//
//// RESFILE_AWARDS				"/M"
//#ifndef _NO_MEDAL_CEREMONY
////#define RES_AWARDWINNER			0
////#define RES_AWARDLOSER			1
////#define RES_AWARDMEDAL			4
////#define RES_AWARDSTAND			5
////#define RES_MEDALPAL0			6
//#endif
//
//// RESFILE_SKATING				"/S"
////#define RES_SKATESTART			12
////#define RES_SKATECYCLE			13
////#define RES_STARTDAT			14
////#define RES_CYCLEDAT			15
////#define RES_BARCURSOR			16
////#define RES_BARFILL				17
////#define RES_BARHILL				18
////#define RES_BARHILR				19
////#define RES_BARLEFT				20
////#define RES_BARRIGHT			21
////#define RES_BARMARKER			22
////#define RES_BARMAXHIT			23
//
//// RESFILE_SKIING				"/K"
////#define RES_SKIS_PAL			12
////#define RES_GHOST_SKIS_PAL		13
////#define RES_SKIER				14
////#define RES_SKIER_DAT			15
////#define RES_SKIER_CRASH			16
////#define RES_SKIER_CRASH_DAT		17
////#define RES_SKIER_START			18
////#define RES_SKIER_START_DAT		19
////#define	RES_SKIS				20
////#define RES_SKIS_DAT			21
////#define RES_SLALOM_TRACK_R		22
////#define RES_SLALOM_TRACK_L		23
////#define RES_SLALOM_TRACK_S		24
////#define RES_FLAG_RED			25
////#define RES_FLAG_BLUE			26
////#define RES_SIGN_VERT			27
////#define RES_COMPASS				28
//
//// RESFILE_SKIJUMP				"/J"
////#define RES_SJMIDAIR			12
////#define RES_SJSTART				13
////#define RES_SJSKIING			14
////#define RES_SJAIRBGN			15
////#define RES_SJLAND				16
////#define RES_SJCRASH				17
////#define RES_SJRIGHT				18
////#define RES_SJMIDAIRDAT			20
////#define RES_SJSTARTDAT			21
////#define RES_SJSKIINGDAT			22
////#define RES_SJAIRBGNDAT			23
////#define RES_SJLANDDAT			24
////#define RES_SJCRASHDAT			25
//
//// RESFILE_RAMP					"/R"
////#define RES_RAMP				0
////#define RES_RAMPEND1			1
////#define RES_RAMPEND2			2
////#define RES_RAMPEND3			3
////#define RES_RAMPEND4			4
////#define RES_RAMPEND5			5
////#define RES_RAMPEND6			6
////#define RES_RAMPEND7			7
////#define RES_ARROWD				8
////#define RES_ARROWU				9
////#define RES_ARROWL				10
////#define RES_ARROWR				11
////#define RES_ARROWWRONG			12
////#define RES_BARBK				13
////#define RES_BARFR				14	
//
//// RESFILE_BIATHLON				"/B"
////#define RES_BIATHLON			12
////#define RES_BIATHLONUP			13
////#define RES_BIATHLONDN			14
////#define RES_BIATHLONDAT			15
////#define RES_BIATHLONUPDAT		16
////#define RES_BIATHLONDNDAT		17
//
//// RESFILE_TARGETS				"/T"
////#define RES_GUNSIGHT			0
////#define RES_RICHOCHET			1
////#define RES_TARGET				2
////#define RES_TARGETFAR			4
////#define RES_TARGETSTAND			5
////#define RES_TARGETFILL			6
////#define RES_SNOWBANK			7
////#define RES_UPHILL				8
////#define RES_HEART				9
////#define RES_TARGETHIT			10
////#define RES_TARGETHITDAT		12
//
//// RESFILE_COUNTRY				"/C"
////#define RES_FLAGS				11	// nation count
////#define RES_FLAGSSMALL			13
////#define RES_FLAGSLARGE			15
//
//#else // Not NokiaS60

// RESFILE_SKATING				"/S"

//#ifndef _LIMITED_EVENTS
//
////#define RES_SJMIDAIR			39
////#define RES_SJSTART				40
////#define RES_SJSKIING			41
////#define RES_SJAIRBGN			42
////#define RES_SJLAND				43
////#define RES_SJCRASH				44
////#define RES_SJRIGHT				45
////#define RES_SJMIDAIRDAT			46
////#define RES_SJSTARTDAT			47
////#define RES_SJSKIINGDAT			48
////#define RES_SJAIRBGNDAT			49
////#define RES_SJLANDDAT			50
////#define RES_SJCRASHDAT			51
////#define RES_RAMP				52
////#define RES_RAMPEND1			53
////#define RES_RAMPEND2			54
////#define RES_RAMPEND3			55
////#define RES_RAMPEND4			56
////#define RES_RAMPEND5			57
////#define RES_RAMPEND6			58
////#define RES_RAMPEND7			59
////#define RES_ARROWD				60
////#define RES_ARROWU				61
////#define RES_ARROWL				62
////#define RES_ARROWR				63
////#define RES_ARROWWRONG			64
////#define RES_BARBK				65
////#define RES_BARFR				66
//
//#endif

// RESFILE_COUNTRY				"/C"

//#ifndef _NO_LARGE_FLAGS
//
////#define RES_FLAGSLARGE		2
////#define RES_SKATEPAL		3
//
//#ifndef _LIMITED_EVENTS
//
////#define RES_JUMPPAL			15
////#define RES_BIATHPAL		27
////#define RES_SKIPAL			39
////#define RES_SKIS_PAL		51
////#define RES_GHOST_SKIS_PAL	52
//
//#else
//
////#define RES_BIATHPAL		14
////#define RES_SKIPAL			25
////#define RES_SKIS_PAL		36
//
//#endif
//
//#else	// _NO_LARGE_FLAGS


//#ifndef _LIMITED_EVENTS
//
////#define RES_JUMPPAL			14
////#define RES_BIATHPAL		26
////#define RES_SKIPAL			38
////#define RES_SKIS_PAL		50
////#define RES_GHOST_SKIS_PAL	51
//
//#else


//#endif
//#endif	// _NO_LARGE_FLAGS

//#ifdef _OPENING_CEREMONY
//// RESFILE_OPENING				"/O"
////#define RES_INTRO_RUN			0
////#define	RES_INTRO_RUN_DAT		1
////#define RES_INTRO_APPROACH		2
////#define RES_INTRO_APPROACH_DAT	3
////#define RES_INTRO_LIGHT			4
////#define RES_INTRO_LIGHT_DAT		5
////#define RES_INTRO_STAIRS		6
////#define RES_INTRO_FIREPLACE		7
////#define RES_INTRO_FIRE			8
//#endif
	
// RESFILE_COMMON				"/E"

//#ifdef _LOW_DETAIL
//#ifndef _NO_MENU_GRAPHICS
////#define RES_MENUBOTTOM			12
////#define RES_MENUTOP				13
//#endif
//#else
////#define RES_SIGN2				1
////#define RES_SKY					2
////#define RES_TREE				3
////#define RES_TREESHADOW			4
////#define RES_TREESFAR			5
////#define RES_CROWD				6
////#define RES_CLOCK_DIGITS		7
////#define RES_DOWNHILL			8
////#define RES_UPHILL				9
////#define RES_ARROWSUD			10
////#define	RES_ARROWSLR			11
////#define RES_MENULOGO			12
////#define RES_SPLASHBRAND			13
////#define RES_SPLASHVENAN			14
////#define RES_SPLASHMFORMABK		15
//#ifndef _NO_MENU_GRAPHICS
////#define RES_MENUBOTTOM			16
////#define RES_MENUTOP				17
//#endif
//#endif


//#endif
//#endif
private static final int STRING_STANDINGS = 0;
private static final int STRING_PAUSED = 1;
private static final int STRING_PRESS_ANY_KEY = 2;
private static final int STRING_GAME_TYPE = 3;
private static final int STRING_MAIN_MENU = 4;
private static final int STRING_PRACTICE = 5;
private static final int STRING_COMPETITION = 6;
private static final int STRING_CHALLENGE = 7;
private static final int STRING_SELECT_SCORE = 8;
private static final int STRING_SELECT_NEW_SCORE = 9;
private static final int STRING_ONLINE_SEARCH = 10;
private static final int STRING_NOT_FOUND = 11;
private static final int STRING_NO_ONLINE_RECORDS = 12;
private static final int STRING_CHANGE_ONLINE_NAME = 13;
private static final int STRING_LOCAL_TOP_TEN = 14;
private static final int STRING_ONLINE_TOP_TEN = 15;
private static final int STRING_LOCAL_GAME = 16;
private static final int STRING_ONLINE_GAME = 17;
private static final int STRING_NETWORK_ERROR = 18;
private static final int STRING_SETTING_NAME = 19;
private static final int STRING_GETTING_NAME = 20;
private static final int STRING_GETTING_SCORES = 21;
private static final int STRING_GETTING_SCORE = 22;
private static final int STRING_SENDING_SCORE = 23;
private static final int STRING_GETTING_RANK = 24;
private static final int STRING_NEW_HIGH_SCORE = 25;
private static final int STRING_NOT_YOUR_BEST = 26;
private static final int STRING_TRY_AGAIN = 27;
private static final int STRING_NO_LOCAL_RECORDS = 28;
private static final int STRING_NEW_LOCAL_RECORD = 29;
private static final int STRING_SELECT_COUNTRY = 30;
private static final int STRING_QUIT_COMPETITION = 31;
private static final int STRING_ABOUT = 32;
private static final int STRING_HELP = 33;
private static final int STRING_RECORDS = 34;
private static final int STRING_EXIT = 35;
private static final int STRING_MISS = 36;
private static final int STRING_ENTER_NAME = 37;
private static final int STRING_SELECT_EVENT = 38;
private static final int STRING_EVENT_RESULTS = 39;
private static final int STRING_PLAY = 40;
private static final int STRING_INSTRUCTIONS = 41;
private static final int STRING_SETTINGS = 42;
private static final int STRING_SELECT_NEW_EVENT = 43;
private static final int STRING_EVENT0 = 44;
private static final int STRING_EVENT1 = 45;
private static final int STRING_EVENT2 = 46;
private static final int STRING_MEDAL_CEREMONY = 47;
private static final int STRING_HELPTEXT_EVENT0 = 48;
private static final int STRING_HELPTEXT_EVENT1 = 49;
private static final int STRING_HELPTEXT_EVENT2 = 50;
private static final int STRING_HELPTEXT_MAIN = 51;
private static final int STRING_RANK = 52;
private static final int STRING_SOUND = 53;
private static final int STRING_RESET_RECORDS = 54;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -