ZH-CN/Resource:DGS

From Multi Theft Auto: Wiki
Revision as of 13:31, 13 January 2018 by Thisdp (talk | contribs) (→‎特性)
Jump to navigation Jump to search

DGS Network Monitor

这是图形用户界面库,能够使你创建华丽的DirectX图形,摆脱原来的CEGUI.


全名 : Thisdp's DX Graphical User Interface System ( Dx GUI Lib )

作者 : thisdp

状态 : 开源(正在发展)

GitHub源码 : https://github.com/thisdp/dgs/tree/master



特性

DGSS.png


它如何工作?

  • DGS 的工作原理与CEGUI的差不多,基于 元素(element) 系统, 使用这种方案能够让开发者更容易接受、理解。
  • DGS 元素在onClientRender事件下被渲染。有两个以上的表储存DGS元素。当onClientRender事件被触发,"for"循环将会计算每一个DGS元素。


有何不同?

  • 这个资源基于dx函数,这使得我们可以编辑GUI样式,让它变得更自定义化,可完全按照你的喜好来设置样式。


更新机制

  • DGS有一个更新机制,能够使你的DGS保持最新状态。
  • 当有新版本推送,它会检测到并且提醒你是否进行更新。
  • 执行"updatedgs"命令来进行DGS更新。
  • 你可以通过指令"dgsver"来查看当前DGS版本。


Update logs

  • Update Schedule (Need to be done)
  • Next Target :
  • 1. Improve dgs-dxCycleHitShape -> dgs-dxOvalDetectArea
  • 2. Add version-recovery command -> recoverdgs (If there are problems with new version, you can go back to the version before you update)
  • For More Info About Update logs : Update Log


Example DGS Cmd

Examples scripts


Auto Completion


Debug

  • You can enter debug mode by executing the command "debugdgs"


DGS Type

Hurt World GUI Example
  • Button (dgs-dxbutton): A button.
  • Command (dgs-dxcmd): A command just like windows.
  • Ellipse Detect Area (dgs-dxeda): An oval detect area.
  • Edit (dgs-dxedit): An edit.
  • Memo (dgs-dxmemo): A memo.
  • Gridlist (dgs-dxgridlist): A grid list.
  • Image (dgs-dximage): A dynamic image.
  • Label (dgs-dxlabel): A text label.
  • Ellipse Detect Area (EDA)
  • ScrollBar (dgs-dxscrollbar): A scroll bar.
  • ScrollPane (dgs-dxscrollpane): A scroll pane.
  • Tab Panel (dgs-dxtabpanel + dgs-dxtab) : A tab panel.
  • Window (dgs-dxwindow): A window.
  • Progress Bar (dgs-dxprogressbar): A Progress Bar.
  • Radio Button (dgs-dxradiobutton): A Radio Button.
  • Combo Box (dgs-dxcombobox + dgs-dxcombobox-Box) : A combo box.
  • Check Box (dgs-dxcheckbox) : A check box that with 3 states (checked, unchecked and indeterminate).


Notice

  • Recommend to change the resource name to 'dgs'.
  • This is a resource. If you want to use the functions exported by this resource, you should add something in front of the function like "exports.dgs:dgsDxCreateLabel(0,0,0.5,0.1,"text",true)".
  • Here is a feasible way to shorten the name of an exported function:
DGS = exports.dgs --shorten the export function prefix
label = DGS:dgsDxCreateLabel(0,0,0.5,0.1,"text",false) --create a label


Thanks for their helps :

Example tab panel and label .
  • Axel: Gives some tips and provide some functions.
  • Senpai: Helps write wiki.
  • ZoNe: Helps write wiki.
  • DiGiTal: Helps write wiki.
  • #Dv^: Helps write wiki.

-->Especially For:

  • Ahmed Ly: Helps write wiki, release auto completion for N++.

DGS Element Properties

General Properties

Unique Properties For DGS Core Elements

Extra Properties For DGS Plugins

Client Functions

Custom Cursor Functions

Multi Language Supports

Animation

3D Element

3D Interface

3D Line

3D Image

3D Text

Browser

Button

Check Box

Combo Box

Custom Renderer

Edit

Detect Area

Drag'N Drop

Grid List

Image

Memo

Menu

Label

Layout

Line

Progress Bar

Radio Button

Scale Pane

Scroll Bar

Scroll Pane

Selector

Style

Switch Button

Tab Panel

Window

Basic Shape Plugins

Circle

Quadrilateral

Rounded Rectangle

Other Plugins

Blur Box

Canvas

Chart

Color Picker

Effect 3D

Gradient

Mask

Media Browser

Nine Slice

Object Preview Supports

Paste Handler

QRCode

Remote Image

Screen Source

SVG

Tooltips

Client Events

General

Check Box

Combo Box

Drag'N Drop

Edit

Grid List

Menu

Selector

Mouse

Radio Button

Switch Button

Tab

Animation

Plugin

Media

Color Picker

QRCode

Remote Image

Last

Welcome everyone else to made suggestions, tested the script, helped me to finish the wiki, etc