示例#1
0
    public void SetMaterials(SymbolDatabase newSymbolDatabase, BoxAppearanceDatabase newBoxDatabase)
    {
        Sprite bodySprite = null;
        Sprite tailSprite = null;

        symbolDatabase = newSymbolDatabase;
        boxDatabase    = newBoxDatabase;
        if (boxDatabase != null)
        {
            if (!boxDatabase.GetBoxAppearance(BoxAppearanceDatabase.BoxPurpose.System, 0, ref bodySprite, ref tailSprite))
            {
                boxAppearanceIndex = -1;
                bodySpriteSystem   = null;
                bodySpriteDialogue = null;
                tailSpriteDialogue = null;
            }
            else
            {
                boxAppearanceIndex = 0;
                bodySpriteSystem   = bodySprite;
                boxDatabase.GetBoxAppearance(BoxAppearanceDatabase.BoxPurpose.Dialogue, 0, ref bodySprite, ref tailSprite);
                bodySpriteDialogue = bodySprite;
                tailSpriteDialogue = tailSprite;
            }
        }
        ExtractTailDimensions();
    }
示例#2
0
    private TransactionBoxManager()
    {
        transactionBoxParent = null;
        boxObjects           = null;
        boxComponents        = null;
        boxSourceObjects     = null;
        boxSourceListeners   = null;
        boxSourceDistances   = null;
        boxTryAboves         = null;
        boxTailObjects       = null;
        boxTailRenderers     = null;
        symbolDatabase       = null;
        boxDatabase          = null;
        boxAppearanceIndex   = -1;
        bodySprite           = null;
        tailSprite           = null;
        tailWidth            = 0f;
        tailHeight           = 0f;
        tailHalfWidth        = 0f;
        tailHalfHeight       = 0f;
        cameraObject         = null;
        cameraController     = null;
        cameraWidth          = 0f;
        cameraHeight         = 0f;
        cameraHalfWidth      = 0f;
        cameraHalfHeight     = 0f;
        boxDepth             = DisplayDepthManager.GetElementDepth(DisplayDepthManager.ELEMENT_CODE_TRANSACTION);
        boxLimits            = new Vector2(TextBox.DEFAULT_MAX_BOX_WIDTH, TextBox.DEFAULT_MAX_BOX_HEIGHT);

        transactionBoxParent = new GameObject("TransactionBoxParent");
        transactionBoxParent.transform.position = new Vector3(0f, 0f, boxDepth);
    }
示例#3
0
    private TextBoxManager()
    {
        textBoxParent      = null;
        boxObjects         = null;
        boxComponents      = null;
        boxMasterEvents    = null;
        boxQuestionRoles   = null;
        boxOptionIndexes   = null;
        boxSpeakerIDs      = null;
        boxTryAboves       = null;
        boxTailObjects     = null;
        boxTailRenderers   = null;
        symbolDatabase     = null;
        boxDatabase        = null;
        boxAppearanceIndex = -1;
        bodySpriteSystem   = null;
        bodySpriteDialogue = null;
        tailSpriteDialogue = null;
        tailWidth          = 0f;
        tailHeight         = 0f;
        tailHalfWidth      = 0f;
        tailHalfHeight     = 0f;
        stage                  = null;
        cameraObject           = null;
        cameraController       = null;
        cameraWidth            = 0f;
        cameraHeight           = 0f;
        cameraHalfWidth        = 0f;
        cameraHalfHeight       = 0f;
        cameraPixelWidth       = 0;
        cameraPixelHeight      = 0;
        boxDepth               = DisplayDepthManager.GetElementDepth(DisplayDepthManager.ELEMENT_CODE_TEXT);
        systemBoxLimits        = new Vector2(TextBox.DEFAULT_MAX_BOX_WIDTH, TextBox.DEFAULT_MAX_BOX_HEIGHT);
        systemBoxTopOffset     = 0f;
        dialogueBoxLimits      = new Vector2(DialogueBox.DEFAULT_MAX_D_BOX_WIDTH, DialogueBox.DEFAULT_MAX_D_BOX_HEIGHT);
        questionDelegate       = null;
        enunciateBoxTopOffset  = 0f;
        enunciateBoxComponent  = null;
        optionsToAllocate      = 0;
        optionAreaHeight       = 0f;
        optionHalfAreaHeight   = 0f;
        optionBoxTopOffset     = 0f;
        optionAwaitedIndex     = -1;
        optionChosenIndex      = -1;
        optionIndexConfirm     = -1;
        optionIndexCancel      = -1;
        optionComponentConfirm = null;
        optionComponentCancel  = null;
        paused                 = false;

        textBoxParent = new GameObject("TextBoxParent");
        textBoxParent.transform.position = new Vector3(0f, 0f, boxDepth);
    }
示例#4
0
    public void SetMaterials(SymbolDatabase newSymbolDatabase, BoxAppearanceDatabase newBoxDatabase)
    {
        Sprite tailSprite = null;

        symbolDatabase = newSymbolDatabase;
        boxDatabase    = newBoxDatabase;
        if (boxDatabase != null)
        {
            if (!boxDatabase.GetBoxAppearance(BoxAppearanceDatabase.BoxPurpose.UI, 0, ref bodySprite, ref tailSprite))
            {
                boxAppearanceIndex = -1;
                bodySprite         = null;
            }
            else
            {
                boxAppearanceIndex = 0;
            }
        }
    }
示例#5
0
 public void SetMaterials(SymbolDatabase newSymbolDatabase, BoxAppearanceDatabase newBoxDatabase)
 {
     symbolDatabase = newSymbolDatabase;
     boxDatabase    = newBoxDatabase;
     if (boxDatabase != null)
     {
         if (!boxDatabase.GetBoxAppearance(BoxAppearanceDatabase.BoxPurpose.Transaction, 0, ref bodySprite, ref tailSprite))
         {
             boxAppearanceIndex = -1;
             bodySprite         = null;
             tailSprite         = null;
         }
         else
         {
             boxAppearanceIndex = 0;
             ExtractTailDimensions();
         }
     }
 }
示例#6
0
 private TextBoxUIManager()
 {
     boxObjects             = null;
     boxComponents          = null;
     boxMasterEvents        = null;
     boxMasterItems         = null;
     boxQuestionRoles       = null;
     boxOptionIndexes       = null;
     symbolDatabase         = null;
     boxDatabase            = null;
     boxAppearanceIndex     = -1;
     bodySprite             = null;
     uiCanvasTrans          = null;
     questionDelegate       = null;
     enunciateBoxComponent  = null;
     optionAwaitedIndex     = -1;
     optionChosenIndex      = -1;
     optionIndexConfirm     = -1;
     optionIndexCancel      = -1;
     optionComponentConfirm = null;
     optionComponentCancel  = null;
     itemOnDisplay          = false;
 }