Ejemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();

            outputView = new OutputView(this);

            registersView = new RegisterView(this);

            displayView = new DisplayView(this);
            controlView = new ControlView(this);

            callStackView  = new CallStackView(this);
            stackFrameView = new StackFrameView(this);

            //stackView = new StackView(this);
            //flagView = new FlagView(this);
            statusView      = new StatusView(this);
            symbolView      = new SymbolView(this);
            watchView       = new WatchView(this);
            breakPointView  = new BreakPointView(this);
            instructionView = new InstructionView(this);
            methodView      = new MethodView(this);

            //scriptView = new ScriptView(this);

            AppLocations.FindApplications();
        }
Ejemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();

            outputView = new OutputView(this);

            registersView = new RegisterView(this);

            displayView = new DisplayView(this);
            controlView = new ControlView(this);

            callStackView  = new CallStackView(this);
            stackFrameView = new StackFrameView(this);

            statusView      = new StatusView(this);
            symbolView      = new SymbolView(this);
            watchView       = new WatchView(this);
            breakPointView  = new BreakpointView(this);
            instructionView = new InstructionView(this);
            methodView      = new MethodView(this);

            //scriptView = new ScriptView(this);

            sourceView     = new SourceView(this);
            sourceDataView = new SourceDataView(this);

            AppLocations.FindApplications();
            LauncherOptions.EnableQemuGDB = true;
        }
Ejemplo n.º 3
0
        public SymbolsPool(Canvas rootCanvas)
        {
            var heapTransform = new GameObject("SymbolPoolHeap").transform;

            heapTransform.parent = rootCanvas.transform;
            heapTransform.gameObject.SetActive(false);

            _heap             = heapTransform;
            _symbolViewPrefab = Resources.Load <SymbolView>(SYMBOL_VIEW_PREFAB_PATH);

            Preload(PRELOAD_COUNT);
        }
Ejemplo n.º 4
0
        public MainForm()
        {
            InitializeComponent();

            outputView = new OutputView(this);

            registersView = new RegisterView(this);

            displayView = new DisplayView(this);
            controlView = new ControlView(this);
            traceView   = new TraceView(this);

            callStackView  = new CallStackView(this);
            stackFrameView = new StackFrameView(this);

            statusView           = new StatusView(this);
            symbolView           = new SymbolView(this);
            watchView            = new WatchView(this);
            breakPointView       = new BreakpointView(this);
            instructionView      = new InstructionView(this);
            methodView           = new MethodView(this);
            methodParametersView = new MethodParametersView(this);

            //scriptView = new ScriptView(this);

            sourceView = new SourceView(this);

            sourceDataView = new SourceDataView(this);              // only useful when debugging this tool

            launchView = new LaunchView(this);

            Settings = AppLocationsSettings.GetAppLocations();

            Settings.SetValue("Emulator.GDB", true);
            Settings.SetValue("Emulator.Serial", "TCPServer");
            Settings.SetValue("Emulator.Serial.Port", 1250);
            Settings.SetValue("Emulator.Display", false);

            GDBPort = 1234;

            AppDomain.CurrentDomain.DomainUnload       += (s, e) => { KillVMProcess(); };
            AppDomain.CurrentDomain.ProcessExit        += (s, e) => { KillVMProcess(); };
            AppDomain.CurrentDomain.UnhandledException += (s, e) => { KillVMProcess(); };
        }
    void GenerateSymbols()
    {
        //Debug.Log(mReelStrip.text);

        for (int j = 0; j < mSymbols.Length; j++)
        {
            lSymbols.Add(mSymbols[j].mReelFigure.ToString(), mSymbols[j]);
        }

        if (PlayerDataController.Controller.currentStripModel.reelstrip.Count > 0)
        {
            stripModel = PlayerDataController.Controller.currentStripModel;
        }
        else
        {
            stripModel = JsonConvert.DeserializeObject <ReelStripModel>(mReelStrip.text);
        }

        //Debug.Log(stripModel.reelstrip.Count);

        for (int i = 0; i < stripModel.reelstrip.Count; i++)
        {
            for (int j = 0; j < stripModel.reelstrip[i].Count; j++)
            {
                //Debug.Log(stripModel.reelstrip[i][j]);
                lSymbolView = Instantiate(mSymbolObj, mReelViews[i].transform);
                lSymbolView.BindData(lSymbols.Single(s => s.Key == stripModel.reelstrip[i][j]).Value);
                lSymbolView.transform.SetAsFirstSibling();
            }

            if (PlayerDataController.Controller.saveReelStrip.currentStopReelScrollValues.Count > 0)
            {
                mReelViews[i].SetData(mReels[i], PlayerDataController.Controller.saveReelStrip.currentStopReelScrollValues[i], PlayerDataController.Controller.saveReelStrip.finalPosY[i]);
            }
            else
            {
                mReelViews[i].SetData(mReels[i]);
            }
        }
    }
Ejemplo n.º 6
0
 public void SetSymbolView(SymbolView symbolview)
 {
     symbolView = symbolview;
 }