Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
UiSkillTree.h
Package: SwordOnline.rar [view]
Upload User: dzyhzl
Upload Date: 2019-04-29
Package Size: 56270k
Code Size: 2k
Category:
Game Server Simulator
Development Platform:
C/C++
- /*****************************************************************************************
- // 界面--技能树窗口
- // Copyright : Kingsoft 2002
- // Author : Wooy(Wu yue)
- // CreateTime: 2002-9-2
- ------------------------------------------------------------------------------------------
- *****************************************************************************************/
- #pragma once
- #include "../elem/wndimage.h"
- #include "../elem/wndbutton.h"
- #include "../../../core/src/gamedatadef.h"
- #define SKILLTREE_MAX_SKILL_COUNT 65
- #define SKILLTREE_SHORTCUT_SKILL_COUNT 9
- enum SHORTCUT_KEY_INDEX;
- class KUiSkillTree : protected KWndWindow
- {
- public:
- static KUiSkillTree* OpenWindow(int bLeft); //打开窗口,返回唯一的一个类对象实例
- static KUiSkillTree* GetIfVisible(); //如果窗口正被显示,则返回实例指针
- static void CloseWindow(bool bDestroy); //关闭窗口,同时可以选则是否删除对象实例
- static void LoadScheme(const char* pScheme);//载入界面方案
- static void HandleShortcutKey(int nIndex);
- static void LoadConfig(KIniFile* pIni);
- static void SaveConfig(KIniFile* pIni); //保存自定义配置
- static void DirectHandleShortcutKey(int nIndex);
- private:
- KUiSkillTree();
- ~KUiSkillTree() {}
- void Initialize(); //初始化
- void PaintWindow(); //窗体绘制
- int PtInWindow(int x, int y);
- void UpdateData(); //更新数据
- void UpdateWndRect();
- void Hide(); //隐藏窗口
- int GetSkillAtPos(int x, int y); //得到指定位置的技能的索引
- int WndProc(unsigned int uMsg, unsigned int uParam, int nParam);//窗口函数
- private:
- static KUiSkillTree* m_pSelf;
- private:
- int m_nNumSkills;
- KUiSkillData m_Skills[SKILLTREE_MAX_SKILL_COUNT];
- //KUiSkillData::nLevel在此的含义表示位此技能显示在第几列
- int m_nFont;
- unsigned int m_uColor;
- unsigned int m_bLeft;
- int m_nLeftLeft, m_nLeftTop;
- int m_nRightLeft, m_nRightTop;
- int m_nWidthPerSkill, m_nHeightPerSkill;
- static KUiSkillData ms_ShortcutSkills[SKILLTREE_SHORTCUT_SKILL_COUNT];
- //KUiSkillData::nLevel在此的含义0表示左手技能,1表示右手技能
- };