CustomGUIPainter

Class name: CustomTextLabel
Script location: "Assets\Standard Assets\Scripts\CustomGUIPainter.cs"

Description
Super classe per gli script che disegnano gui. Consente di utilizzare le CustomTextLabel

Field summary

attribute description
protected Dictionary<string, CustomTextLabel> CTL_to_render hash map che contiene le CustomTextLabel
protected Dictionary<int, CustomAlert> CA_to_render hash map contenente le CustomAlert

Method summary

signature description
public void add_CTL(ref CustomTextLabel _ctl) aggiunge un oggetto CustomTextLabel alla CTL_to_render
public CustomTextLabel getCtl(string _name) restituisce la CustomTextLabel associata a _name
public void add_CA(ref CustomAlert _ca) aggiunge un oggetto CustomAlert alla CA_to_render
public CustomAlert getCa(int _id) restituisce la CustomAlert associata a _id

Usage
Lo script deputato al disegno delle gui deve estendere questa classe.

Esempio:

using UnityEngine;
using System.Collections;

public class LocalTravelScript : CustomGUIPainter {
...
Salvo diversa indicazione, il contenuto di questa pagina è sotto licenza Creative Commons Attribution-NonCommercial-NoDerivs 3.0 License