| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- /// <reference path="Atomic.d.ts" />
- /// <reference path="ToolCore.d.ts" />
- /// <reference path="Editor.d.ts" />
- declare module Atomic {
- export function print(...args:any[]);
- export interface PathInfo {
- pathName: string;
- fileName: string;
- ext: string;
- }
- /*
- export enum UIWidgetEventType {
- EVENT_TYPE_CLICK,
- EVENT_TYPE_LONG_CLICK,
- EVENT_TYPE_POINTER_DOWN,
- EVENT_TYPE_POINTER_UP,
- EVENT_TYPE_POINTER_MOVE,
- EVENT_TYPE_RIGHT_POINTER_DOWN,
- EVENT_TYPE_RIGHT_POINTER_UP,
- EVENT_TYPE_WHEEL,
- EVENT_TYPE_CHANGED,
- EVENT_TYPE_KEY_DOWN,
- EVENT_TYPE_KEY_UP,
- EVENT_TYPE_SHORTCUT,
- EVENT_TYPE_CONTEXT_MENU,
- EVENT_TYPE_FILE_DROP,
- EVENT_TYPE_TAB_CHANGED,
- EVENT_TYPE_CUSTOM
- }
- */
- export interface UIWidgetEvent {
- handler: UIWidget;
- target: UIWidget;
- type: number; /*UIWidgetEventType*/
- x: number;
- y: number;
- deltax: number;
- deltay: number;
- count: number;
- key: number;
- specialkey: number;
- modifierkeys: number;
- refid: string;
- touch: boolean;
- }
- export interface UIWidgetDeletedEvent {
-
- widget: UIWidget;
- }
- export interface AttributeInfo {
- type:VariantType;
- name:string;
- mode:number; // AM_*
- defaultValue:string;
- enumNames:string[];
- }
- export interface ShaderParameter {
- name:string;
- value:any;
- valueString:string;
- typeName:string;
- type:VariantType;
- }
- export function getArguments(): Array<string>;
- export function getEngine(): Engine;
- export function getInput(): Input;
- export function getGraphics(): Graphics;
- export function getFileSystem(): FileSystem;
- export function getResourceCache(): ResourceCache;
- export function getParentPath(path: string): string;
- export function addTrailingSlash(path: string): string;
- export function getExtension(path: string): string;
- export function splitPath(path: string): PathInfo;
- }
- declare module ToolCore {
- export function getToolEnvironment(): ToolEnvironment;
- export function getToolSystem(): ToolSystem;
- export function getAssetDatabase(): AssetDatabase;
- }
|