CN104991763B - A kind of general interface Behavior- Based control system - Google Patents

A kind of general interface Behavior- Based control system Download PDF

Info

Publication number
CN104991763B
CN104991763B CN201510302640.2A CN201510302640A CN104991763B CN 104991763 B CN104991763 B CN 104991763B CN 201510302640 A CN201510302640 A CN 201510302640A CN 104991763 B CN104991763 B CN 104991763B
Authority
CN
China
Prior art keywords
interface
behavior
data
module
configuration file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510302640.2A
Other languages
Chinese (zh)
Other versions
CN104991763A (en
Inventor
陈汉辉
李茂�
吴海权
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Xishanju Interactive Entertainment Technology Co ltd
Zhuhai Kingsoft Digital Network Technology Co Ltd
Original Assignee
Western Hills Residence Guangzhou Shi You Network Technology Co Ltd
Zhuhai Kingsoft Online Game Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Western Hills Residence Guangzhou Shi You Network Technology Co Ltd, Zhuhai Kingsoft Online Game Technology Co Ltd filed Critical Western Hills Residence Guangzhou Shi You Network Technology Co Ltd
Priority to CN201510302640.2A priority Critical patent/CN104991763B/en
Publication of CN104991763A publication Critical patent/CN104991763A/en
Application granted granted Critical
Publication of CN104991763B publication Critical patent/CN104991763B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of general interface Behavior- Based control system, including:Interface behavior describing module, there is provided storage with the interface property of self-defined editor with interface behavior relevant data;Interface configuration file maker, by the interface property of interface behavior describing module with interface behavior relevant data parameterization, and be packaged into configuration file;Interface object loader, for creating new interface object, loading and data storage resource, parse configuration file;Interface data manager, for being identified and classifying to data resource, record related interfaces behavior;Interface manager, for performing all interface behaviors.Beneficial effects of the present invention are by resource, logic, data separating, and structure simplifies, and substantially reduce the complexity of exploitation, reduce code repeatability, while interface behavior is all shown in same tables of data, and the people for the program that makes to fail to understand can also modify.

Description

A kind of general interface Behavior- Based control system
Technical field
The present invention relates to a kind of general interface Behavior- Based control system, belong to computer game field.
Background technology
Interface has very important status in gaming, and it is directly interacted with user (player), simultaneously Also change very frequent.When games have new playing method, or the demand of system changes, and often unavoidably to repair Change interface.The interface of game is, it is necessary to expend developer's substantial amounts of time and energy.For example, use Unity game engines A change system is designed, it is as shown below to carry out step:
1) prepare the related resource of the fine arts, be fabricated to atlas;
2) use splices interface, preserves into prefab files in unity;
3) using c# language loading prefab files, and the response events of some buttons are realized.
Above-mentioned step can only realize some basic interface behaviors, when realizing more additional interface behaviors if desired, Developer is then needed to write increasingly complex GUI code, interface behavior example is as follows:
1) it is automatic to close player and change the outfit interface when opening knapsack interface;
2) when opening a certain interface, another specifies interface to open simultaneously;
3) when in special scenes, the interface of some openings specified is closed;
4) for some interfaces, can be opened and closed using shortcut, for example " ESC " closes interface;
5) for some specific interfaces, such as mode, prevent to forbid mouse and keyboard input information during opening;
6) for some interfaces, need to provide some voice messages when opening and closing;
7) when the interface for having some to open, when then clicking on background, interface is closed automatically;
8) for the interface of some openings, closed for a period of time when player walks;
9) when some interfaces one are opened, the corner specified of screen is appeared in;
10) some interfaces need to fade out opening.
Above-mentioned simply a part of example, may more, more in the additional interface that actual development process median surface needs Complexity, thus need developer to expend the work largely repeated, cause low efficiency and be easier the BUG of triggering. Therefore a set of simple, easy-to-use, flexible interface behavior development system can greatly improve development of games efficiency and reduce game Bug generation.
The content of the invention
The defects of for the low development efficiency of prior art and being easier triggering BUG, the invention provides a kind of general Interface Behavior- Based control system, he have the characteristics that it is simple, easy-to-use, flexible, make interface exploitation become simple and high Effect.
The present invention realizes technical support with Lua scripts.Lua is write by standard C and formed, code precision and elegance, almost It can compile, run in all operating systems and platform.Simultaneously Lua be explanatory language, after modification can with perform, Need not compiling.
Technical scheme includes a kind of general interface behavior control system, and the system includes:Interface behavior is retouched State module, there is provided storage with editable interface property with interface behavior relevant data;Interface configuration file maker, by interface The interface property of behavior description module relevant data parameterization with interface behavior, and it is packaged into configuration file;Interface object loads Device, for creating new interface object, loading and data storage resource, parse configuration file;Interface data manager, for pair Data resource is identified and classified, and records related interfaces behavior;Interface manager, for performing all interface behaviors, and then All interfaces are controlled to be opened, hidden and Layering manifestation.
Preferably, described interface behavior describing module includes:Memory module, deposited using visualization, editable data Storage technology stores number interface attribute and interface behavior information;Editor module, use user oriented editable operation circle Edit interface attribute and interface behavior information in face.
Further, described interface configuration file maker includes:Package module, for interface behavior describing module to be joined Numberization, the data of the behavior description module after parametrization are packaged, make the data of the behavior description module after encapsulation turn into The configuration file of device parsing can be parsed by the script.
Further, described object loader includes:Data load-on module, for the data file comprising configuration file Pre-processed, configuration file is converted to data flow;Object Creation module, for creating comprising new interface attribute and The interface object of interface behavior;Data memory module, for the interface category after storing the data resource comprising configuration file, parsing Property and interface behavior information;Document analysis module, the script resolver of games is called to the data source file of pretreatment Parsed, and connection is established between the interface behavior of parsing and corresponding application programming interface.
Further, in a preferred embodiment, the Object Creation module of described object loader is further matched somebody with somebody It is set to:First, the new interface property data resource relevant with interface behavior is created in interface behavior describing module;Then, will Resource data passes to interface configuration file maker, and new interface property and interface will be included by interface configuration file maker The data resource of behavioural information is packaged into configuration file;Finally, Object Creation module receives configuration file and resolved to new Interface object.
Further, in a preferred embodiment, described data resource includes:Lua configuration files, general-purpose interface Function, interface property and interface behavior information.
Further, described interface manager includes:Logging modle, for recording interface behavior information, to data resource Classification and Identification and management are carried out, profile information is arranged and recorded;
Further, described interface behavior management module includes:Interface behavior management module, for performing all game circle The opening of face transmission, the request hidden and run, and be carried out in opening, hiding and runnable interface to interface manager Handle the calling of function;Interface debonding module, for all interfaces to be divided into multiple boundary layers, make each boundary layer With specific type and situation elements, while by one or more Interface classifications to different boundary layers.
Beneficial effects of the present invention are:By resource, logic, data separating, it should be readily appreciated that and safeguard in structure;Whole game Interface, be all listed in a table, be also easy to check and change;Addition and the behavior at modification interface are more convenient.It understanding of table, pin Just, the planning fine arts can also be changed for the meaning every to table, directly modification.The labour of program has been liberated, has allowed professional person Special thing is done, is advantageous to improve the quality at interface;In the development of games of reality, due to having extracted general interface, no longer Each independent interface is needed, writes the behavior at interface, the complexity of logic is reduced, reduces the repeatability of code, improve out The efficiency of hair.
Brief description of the drawings
Fig. 1 show the block diagram of the current game interface behavior control system according to the present invention;
Fig. 2 is shown describes table according to the interface behavior of the current game interface behavior control system of the present invention;
Fig. 3 show the interface behavior implementation process of the current game interface behavior control system according to the present invention;
Fig. 4 show the function processing table of the current game interface behavior control system according to the present invention;
Fig. 5 show the user configuration flow of the current game interface behavior control system according to the present invention.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with the accompanying drawings with specific embodiment pair The present invention is described in detail.The interface Behavior- Based control system of the present invention is applied to single-play game, mobile phone games, webpage trip The exploitation of the game such as play, it is particularly suitable for use in and plays the part of the processing for the interface behavior realized in class game in control role.
Fig. 1 show the general frame of interface Behavior- Based control system according to embodiments of the present invention, the system architecture Including:Interface behavior describing module, interface configuration file maker, interface object loader, interface data manager, intercellular canals Manage device.Wherein, interface behavior describing module is used to store interface property and interface behavior, and provides a user self-defined editor's Interface.Interface configuration file maker is then packaged as configuration file transmission for the data in behavioral module to be carried out into parametrization Give interface object loader.Object loader is used to parse configuration file, loads resource data, creates new object of action.Boundary Face data management system is then stored for carrying out class indication to data resource, stores current interface behavior.Interface manager pipe Manage, all interfaces of classifying.
A kind of interface behavior that Fig. 2 show interface Behavior- Based control system according to embodiments of the present invention describes table, The figure is the interface property and interface behavior for listing part.This, which describes table, includes the attribute and interface row at all interfaces For.Wherein A, B row represent the data type of interface property and these interface properties in description table respectively, C1 to C5 represent must be The data of these interface behaviors, these data are that user is opened, and user can direct or through editor circle according to demand Edit data therein in face.
The user that Fig. 3 show interface Behavior- Based control system according to embodiments of the present invention creates interface behavior Simplified process, the establishment process includes:First, user changes the content that interface behavior describes table according to demand, then by table Interface configuration file maker is passed to, interface configuration file maker is parameterized table, as follows:
The interface behavior of parametrization is described table and is configured to configuration file by interface configuration file maker, then will configuration text Part passes to interface object manager, configuration file is resolved into resource file by interface object manager, by programming accordingly Program receives resource file and is translated into interface behavior.
Fig. 4 once specifically connecing for the interface Behavior- Based control system according to the embodiment of the present invention with reference to shown in Fig. 3 Mouth function, which is realized, opens interface, the logical relation processing for hiding interface and the processing procedure of corresponding resource data.
Interface object is created first, is changed desired data in interface behavior table first during the object, is then passed through boundary Face Profile Manager, which is edited, turns into available configuration, passes to interface object loader, the step such as Fig. 3 institutes Show.
Then related some logics such as self.baseCfg=cfg of a function process resource, the following institute of logic are write Show:
1) mode of fading out opens interface;
2) stop position at interface:[" Location "]=" A ", therefore interface location is calculated to the upper left corner and gone;
3) position at interface is in the lower right corner, then interface stop position:[" Location "]=" I ";
4) the interface audio or voice of configuration are played and closed respectively according to configuration in Show () and Hide ();
Recorded after said process has been handled using behavior of the interface data manager to interface, further, for Interface object described in interface object manager, which creates process, to be included:Interface object loader creates interface object, for creating New interface UINameToObject, details are as follows:
When Behavioral change occurs for the interface of system, processing procedure is shown in the following example,
Such as during one scene of right click, then need to close some interfaces, its flow be first during right click scene, it is necessary to pass The interface closed is stored in a list for being " self.ClickHideList ", is then registered the event clicked by right key, is worked as the right side When key clicks on the scenario triggered event, the event of one " OnRButtonDown " is produced, processing function is specifically used as follows:
After step described above, we can confirm that an entire flow for completely creating new interface behavior.
Fig. 5 show the user configuration flow chart of interface Behavior- Based control system according to embodiments of the present invention, and it is walked Suddenly it is:Development of games interface is opened, sends and asks to interface manager, then obtain corresponding configuration file according to demand, Parsed by object loader and give interface data manager and be identified and judge, if the interface behavior of configuration file Information has been present, then directly returns to interface object, calls the function interface of interface loader, and send and ask to interface manager Ask and handle the configuration file, to complete the renewal at interface;If do not found in interface data manager, according to Fig. 3's Flow creates new interface object, and interface object information is stored to interface data manager, sets interface to interface manager The boundary layer planned in advance, then object loader is called to complete above-mentioned step.
It is described above, simply presently preferred embodiments of the present invention, the invention is not limited in above-mentioned embodiment, as long as It reaches the technique effect of the present invention with identical means, should all belong to protection scope of the present invention.In the protection model of the present invention Its technical scheme and/or embodiment can have a variety of modifications and variations in enclosing.

Claims (8)

1. a kind of general interface Behavior- Based control system, it is characterised in that the system includes:
Interface behavior describing module, the relevant data of interface property and interface behavior for storing with playing, and to user The Man Machine Interface of interface property and interface behavior described in editable is provided;
Interface configuration file maker, for being encapsulated the data in interface behavior describing module using Lua script codes technology Into the configuration file that can be parsed by the script device parsing;
Interface object loader, for loading and storing the data resource for including the configuration file, then call script parsing Device parses the interface property and interface behavior, and is established between the interface behavior and corresponding Program Interfaces of parsing Connection;
Interface data manager, for carrying out class indication and arrangement to the data resource of acquisition, and record current activity Interface property and interface behavior;
Interface manager, for performing all interface behaviors, and then all interfaces are controlled to be opened, hidden and Layering manifestation.
2. general interface Behavior- Based control system according to claim 1, it is characterised in that described interface behavior Describing module includes:
Memory module, number interface attribute and interface behavior information are stored using visualization, editable data storage technology;
Editor module, use user oriented editable operation interface editor interface attribute and interface behavior information.
3. general interface Behavior- Based control system according to claim 1, it is characterised in that described interface configurations File generator includes:
Package module, for interface behavior describing module to be parameterized, the data of the behavior description module after parametrization are carried out Encapsulation, makes the data of the behavior description module after encapsulation turn into the configuration file that can be parsed by the script device parsing.
4. general interface Behavior- Based control system according to claim 1, it is characterised in that described interface object Loader includes:
Data load-on module, for being pre-processed to the data file comprising configuration file, configuration file is set to be converted to data Stream;
Object Creation module, for creating the interface object for including new interface attribute and interface behavior;
Data memory module, for the interface property and interface behavior letter after storing the data resource comprising configuration file, parsing Breath;
Document analysis module, for calling the script resolver of games to parse the data source file of pretreatment, And connection is established between the interface behavior of parsing and corresponding application programming interface.
5. general interface Behavior- Based control system according to claim 4, it is characterised in that described data resource Including:
Lua configuration files, general-purpose interface function, interface property and interface behavior information.
6. general interface Behavior- Based control system according to claim 4, it is characterised in that described Object Creation Module is configured as performing following steps:
The new interface property data resource relevant with interface behavior is created in interface behavior describing module;
Resource data is delivered to interface configuration file maker, new interface property will be included by interface configuration file maker Configuration file is packaged into the data resource of interface behavior information;
Configuration file is received by Object Creation module and is resolved to new interface object.
7. general interface Behavior- Based control system according to claim 1, it is characterised in that described interface management Device includes:
Logging modle, for recording interface behavior information, and Classification and Identification is carried out to data resource with management and to configuration Fileinfo is arranged and recorded.
8. general interface Behavior- Based control system according to claim 1, it is characterised in that described interface management Device includes:
Interface behavior management module, for performing the opening that all interfaces are sent, the request hidden and run, and beating Open, hide and be carried out during runnable interface the calling of the processing function to interface manager;
Interface debonding module, for all interfaces to be divided into multiple boundary layers, there is each boundary layer specific Type and situation elements, while by one or more Interface classifications to different boundary layers.
CN201510302640.2A 2015-06-04 2015-06-04 A kind of general interface Behavior- Based control system Active CN104991763B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510302640.2A CN104991763B (en) 2015-06-04 2015-06-04 A kind of general interface Behavior- Based control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510302640.2A CN104991763B (en) 2015-06-04 2015-06-04 A kind of general interface Behavior- Based control system

Publications (2)

Publication Number Publication Date
CN104991763A CN104991763A (en) 2015-10-21
CN104991763B true CN104991763B (en) 2018-02-13

Family

ID=54303579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510302640.2A Active CN104991763B (en) 2015-06-04 2015-06-04 A kind of general interface Behavior- Based control system

Country Status (1)

Country Link
CN (1) CN104991763B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550354B (en) * 2015-12-29 2019-05-31 珠海金山网络游戏科技有限公司 A kind of method and system of configuration file management
CN106126257A (en) * 2016-06-30 2016-11-16 珠海金山网络游戏科技有限公司 The system and method that a kind of interface generates
CN107193852B (en) * 2016-08-03 2020-09-29 上海同豪土木工程咨询有限公司 General method of graphical representation
CN106293770A (en) * 2016-08-24 2017-01-04 珠海金山网络游戏科技有限公司 The general of a kind of table data leads table system and method
CN106775725B (en) * 2016-12-19 2020-12-01 网易(杭州)网络有限公司 Visual configuration editing method and device
CN108399084B (en) * 2017-02-08 2021-02-12 中科创达软件股份有限公司 Application program running method and system
CN106897076B (en) * 2017-03-24 2021-03-02 长沙趣动文化科技有限公司 Game service providing and running method and device
CN107124643A (en) * 2017-03-27 2017-09-01 武汉斗鱼网络科技有限公司 It is a kind of to handle the method and apparatus that live display is set
CN107038050B (en) * 2017-04-25 2020-05-12 合肥充盈信息科技有限公司 Game configuration loading method based on virtual server
CN107844352B (en) * 2017-10-27 2020-11-27 深圳前海桔子信息技术有限公司 Application interface configuration method and device
CN108628641A (en) * 2018-04-26 2018-10-09 珠海亿智电子科技有限公司 A kind of quick start method based on embedded system
CN109408055B (en) * 2018-10-10 2020-02-21 苏州好玩友网络科技有限公司 Cross-platform GUI touch event analysis method under Unity environment
CN109513212B (en) * 2018-11-19 2020-06-12 苏州好玩友网络科技有限公司 2D mobile game UI (user interface) and scenario editing method and system
CN109821240B (en) * 2018-12-05 2022-08-30 广州西山居世游网络科技有限公司 Method and device for realizing resource LOD (load on demand) classification based on Unity
CN109966740B (en) * 2019-03-18 2022-05-20 腾讯科技(上海)有限公司 Scene implementation method, device and equipment
CN112099786B (en) * 2020-08-25 2022-07-26 厦门极致互动网络技术股份有限公司 Game interface code generation method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101158895A (en) * 2007-10-18 2008-04-09 成都金山互动娱乐科技有限公司 Method for improving network game practice property
CN101247593A (en) * 2008-03-06 2008-08-20 中兴通讯股份有限公司 System and method for configuring mobile phone subscriber interface operation interface

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015095219A (en) * 2013-11-14 2015-05-18 ソニー株式会社 Information processor, information processing method and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101158895A (en) * 2007-10-18 2008-04-09 成都金山互动娱乐科技有限公司 Method for improving network game practice property
CN101247593A (en) * 2008-03-06 2008-08-20 中兴通讯股份有限公司 System and method for configuring mobile phone subscriber interface operation interface

Also Published As

Publication number Publication date
CN104991763A (en) 2015-10-21

Similar Documents

Publication Publication Date Title
CN104991763B (en) A kind of general interface Behavior- Based control system
CN107807878B (en) Keyword-based universal test resource driving and execution management method
US8150673B1 (en) Partitioning a model in modeling environments
US8001519B2 (en) Model driven development including aspect integration tool
US7448024B2 (en) System and method for software application development in a portal environment
CN106815131B (en) A kind of game resource inspection method and system based on Unity engine
CN104317589B (en) A kind of code automatic generation method and device for being used to load dynamic link library
CN106293664A (en) Code generating method and device
Schlungbaum et al. Automatic User Interface Generation from Declarative Models.
CN109669688A (en) Based on visual software development methodology, device, terminal device and storage medium
CN101996131A (en) Automatic test method and automatic test platform for graphic user interface (GUI) based on x extensive makeup language (XML) packaging key word
CN108280291A (en) Reusable simulation model Interface design and interconnection method, device and computer equipment
CN109508298B (en) Graphical script test method and system
CN107220172A (en) Automatic user interface is carried out by model-driven methodologies(UI)The method and system of test
WO2022188780A1 (en) Visual software development system, method and apparatus, and computer storage medium
CN100555219C (en) Atom manipulation encapsulation apparatus and method
CN104536734B (en) A kind of current game audio management system and method
CN106681897A (en) Code debugging method and device
CN108874649A (en) Generation method, device and its computer equipment of automatic test script
Oliveira Junior et al. SMartySPEM: a SPEM-based approach for variability management in software process lines
CN102004648B (en) Program customization method and device
CN106325860A (en) Automatic maintenance method for aerospace embedded software interface data
CN105760300B (en) A kind of automated testing method and test macro of STK/UTK business
CN114003451B (en) Interface testing method, device, system and medium
CN109542444A (en) Monitoring method, device, server and the storage medium of JAVA application

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180712

Address after: 519000 Room 303, former Island Ring Road, Tangjia Bay, Zhuhai high tech Zone, Guangdong, China, 303

Co-patentee after: ZHUHAI KINGSOFT ONLINE GAME TECHNOLOGY Co.,Ltd.

Patentee after: ZHUHAI XISHANJU INTERACTIVE ENTERTAINMENT TECHNOLOGY Co.,Ltd.

Address before: 519000 Jinshan software building, 8 Lanshan lane, Jida Jingshan Hill Road, Zhuhai, Guangdong

Co-patentee before: GUANGZHOU SEASUN ENTERTAINMENT NETWORK TECHNOLOGY Co.,Ltd.

Patentee before: ZHUHAI KINGSOFT ONLINE GAME TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 519000 Room 303, former Island Ring Road, Tangjia Bay, Zhuhai high tech Zone, Guangdong, China, 303

Patentee after: ZHUHAI XISHANJU INTERACTIVE ENTERTAINMENT TECHNOLOGY Co.,Ltd.

Patentee after: Zhuhai Jinshan Digital Network Technology Co.,Ltd.

Address before: 519000 Room 303, former Island Ring Road, Tangjia Bay, Zhuhai high tech Zone, Guangdong, China, 303

Patentee before: ZHUHAI XISHANJU INTERACTIVE ENTERTAINMENT TECHNOLOGY Co.,Ltd.

Patentee before: ZHUHAI KINGSOFT ONLINE GAME TECHNOLOGY Co.,Ltd.