计算机与现代化 ›› 2013, Vol. 1 ›› Issue (7): 188-193.doi: 10.3969/j.issn.1006-2475.2013.07.049

• 应用与开发 • 上一篇    下一篇

CEGUI界面编辑器的设计与实现

胡绵涛1,陈滔滔1,2,杜晓荣1,2   

  1. 1.中山大学物理科学与工程技术学院,广东广州510275;2.中山大学光电材料与技术国家重点实验室珠海实验室,广东珠海519082
  • 收稿日期:2013-03-05 修回日期:1900-01-01 出版日期:2013-07-17 发布日期:2013-07-17

Design and Implementation of CEGUI Interface Editor

HU Mian-tao1, CHEN Tao-tao1,2, DU Xiao-rong1,2   

  1. 1. School of Physics and Engineering, Sun Yat-Sen University, Guangzhou 510275, China; 2. Zhuhai Laboratory, State Key Laboratory of Optoelectronic Materials and Technologies, Sun Yat-Sen University, Zhuhai 519082, China
  • Received:2013-03-05 Revised:1900-01-01 Online:2013-07-17 Published:2013-07-17

摘要: CEGUI(Crazy Eddie’s GUI)是一个开源的、完全面向对象的界面开发库,它为游戏用户提供了自由免费的界面设计框架。本文首先介绍CEGUI的整体架构,进而阐述其解析布局文件生成游戏界面的流程,最后,在结合图形用户界面(Graphical User Interface,GUI)库Qt和CEGUI的基础上,搭建界面编辑器QtCELayout。通过在QtCELayout中编辑制作游戏界面并导出相应的布局文件,用户能更方便地对CEGUI界面进行快速设计,从而极大地减少界面开发的时间和精力。

关键词: CEGUI, 游戏界面, 布局文件, Qt, 界面编辑器

Abstract: CEGUI (Crazy Eddie’s GUI) is an interface development library which is open source and fully object-oriented, and it provides free interface design framework for game users. This paper first introduces the architecture of Graphical User Interface (GUI) library CEGUI, and then elaborates the process that CEGUI generates game interface through parsing layout file. Finally, on the basis of combination of GUI library Qt and CEGUI, an interface editor QtCELayout is built. By using QtCELayout, user can edit game interface and export corresponding layout file, which is more convenient for them to design CEGUI interface rapidly, thus greatly reducing time and energy needed for interface development.

Key words: CEGUI, game interface, layout file, Qt, interface editor