コード例 #1
0
    //参数设置界面
    void ArguSettings()
    {
        GUI.Label(new Rect((Main.corner_px + 6.5f) / 1000f * Main.width, (Main.corner_py - 4f) / 1000f * Main.height, 500f / 1000f * Main.width, 300f / 1000f * Main.height), "设定(手持盒)", Main.sty_Title);
//		GUI.Label(new Rect(40f/1000f*Main.width, 55f/1000f*Main.height , 500f/1000f*Main.width,300f/1000f*Main.height), "", Main.sty_SettingsBG);

        GUI.Label(new Rect((Main.corner_px + 11.5f) / 1000f * Main.width, (Main.corner_py + 28f) / 1000f * Main.height, 500f / 1000f * Main.width, 25f / 1000f * Main.height), "写参数", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 186.5f) / 1000f * Main.width, (Main.corner_py + 28f) / 1000f * Main.height, 20f / 1000f * Main.width, 25f / 1000f * Main.height), "=", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 206.5f) / 1000f * Main.width, (Main.corner_py + 28f) / 1000f * Main.height, 21f / 1000f * Main.width, 25f / 1000f * Main.height), "", Main.sty_OffSet_Coo_mini);
        GUI.Label(new Rect((Main.corner_px + 231.5f) / 1000f * Main.width, (Main.corner_py + 28f) / 1000f * Main.height, 500f / 1000f * Main.width, 25f / 1000f * Main.height), "(0:不可以   1:可以)", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 11.5f) / 1000f * Main.width, (Main.corner_py + 53f) / 1000f * Main.height, 500f / 1000f * Main.width, 25f / 1000f * Main.height), "TV  检查", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 186.5f) / 1000f * Main.width, (Main.corner_py + 53f) / 1000f * Main.height, 20f / 1000f * Main.width, 25f / 1000f * Main.height), "=", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 206.5f) / 1000f * Main.width, (Main.corner_py + 53f) / 1000f * Main.height, 21f / 1000f * Main.width, 25f / 1000f * Main.height), "", Main.sty_OffSet_Coo_mini);
        GUI.Label(new Rect((Main.corner_px + 231.5f) / 1000f * Main.width, (Main.corner_py + 53f) / 1000f * Main.height, 500f / 1000f * Main.width, 25f / 1000f * Main.height), "(0:关断   1:接通)", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 11.5f) / 1000f * Main.width, (Main.corner_py + 78f) / 1000f * Main.height, 500f / 1000f * Main.width, 25f / 1000f * Main.height), "穿孔代码", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 186.5f) / 1000f * Main.width, (Main.corner_py + 78f) / 1000f * Main.height, 20f / 1000f * Main.width, 25f / 1000f * Main.height), "=", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 206.5f) / 1000f * Main.width, (Main.corner_py + 78f) / 1000f * Main.height, 21f / 1000f * Main.width, 25f / 1000f * Main.height), "", Main.sty_OffSet_Coo_mini);
        GUI.Label(new Rect((Main.corner_px + 231.5f) / 1000f * Main.width, (Main.corner_py + 78f) / 1000f * Main.height, 500f / 1000f * Main.width, 25f / 1000f * Main.height), "(0:EIA  1:ISO)", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 11.5f) / 1000f * Main.width, (Main.corner_py + 103f) / 1000f * Main.height, 500f / 1000f * Main.width, 25f / 1000f * Main.height), "输入单位", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 186.5f) / 1000f * Main.width, (Main.corner_py + 103f) / 1000f * Main.height, 20f / 1000f * Main.width, 25f / 1000f * Main.height), "=", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 206.5f) / 1000f * Main.width, (Main.corner_py + 103f) / 1000f * Main.height, 21f / 1000f * Main.width, 25f / 1000f * Main.height), "", Main.sty_OffSet_Coo_mini);
        GUI.Label(new Rect((Main.corner_px + 231.5f) / 1000f * Main.width, (Main.corner_py + 103f) / 1000f * Main.height, 500f / 1000f * Main.width, 25f / 1000f * Main.height), "(0:毫米   1:英寸)", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 11.5f) / 1000f * Main.width, (Main.corner_py + 128f) / 1000f * Main.height, 500f / 1000f * Main.width, 25f / 1000f * Main.height), "I/O  通道", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 186.5f) / 1000f * Main.width, (Main.corner_py + 128f) / 1000f * Main.height, 20f / 1000f * Main.width, 25f / 1000f * Main.height), "=", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 206.5f) / 1000f * Main.width, (Main.corner_py + 128f) / 1000f * Main.height, 40f / 1000f * Main.width, 25f / 1000f * Main.height), "", Main.sty_OffSet_Coo_mid);
        GUI.Label(new Rect((Main.corner_px + 251.5f) / 1000f * Main.width, (Main.corner_py + 128f) / 1000f * Main.height, 500f / 1000f * Main.width, 25f / 1000f * Main.height), "(0-35: 通道号   )", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 11.5f) / 1000f * Main.width, (Main.corner_py + 153f) / 1000f * Main.height, 500f / 1000f * Main.width, 25f / 1000f * Main.height), "顺序号", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 186.5f) / 1000f * Main.width, (Main.corner_py + 153f) / 1000f * Main.height, 20f / 1000f * Main.width, 25f / 1000f * Main.height), "=", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 206.5f) / 1000f * Main.width, (Main.corner_py + 153f) / 1000f * Main.height, 21f / 1000f * Main.width, 25f / 1000f * Main.height), "", Main.sty_OffSet_Coo_mini);
        GUI.Label(new Rect((Main.corner_px + 231.5f) / 1000f * Main.width, (Main.corner_py + 153f) / 1000f * Main.height, 500f / 1000f * Main.width, 25f / 1000f * Main.height), "(0:关断   1:接通)", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 11.5f) / 1000f * Main.width, (Main.corner_py + 178f) / 1000f * Main.height, 500f / 1000f * Main.width, 25f / 1000f * Main.height), "纸带格式", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 186.5f) / 1000f * Main.width, (Main.corner_py + 178f) / 1000f * Main.height, 20f / 1000f * Main.width, 25f / 1000f * Main.height), "=", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 206.5f) / 1000f * Main.width, (Main.corner_py + 178f) / 1000f * Main.height, 21f / 1000f * Main.width, 25f / 1000f * Main.height), "", Main.sty_OffSet_Coo_mini);
        GUI.Label(new Rect((Main.corner_px + 231.5f) / 1000f * Main.width, (Main.corner_py + 178f) / 1000f * Main.height, 500f / 1000f * Main.width, 25f / 1000f * Main.height), "(0:无变换 1:F10/11)", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 11.5f) / 1000f * Main.width, (Main.corner_py + 203f) / 1000f * Main.height, 500f / 1000f * Main.width, 25f / 1000f * Main.height), "顺序号停止", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 186.5f) / 1000f * Main.width, (Main.corner_py + 203f) / 1000f * Main.height, 20f / 1000f * Main.width, 25f / 1000f * Main.height), "=", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 206.5f) / 1000f * Main.width, (Main.corner_py + 203f) / 1000f * Main.height, 120f / 1000f * Main.width, 25f / 1000f * Main.height), "", Main.sty_OffSet_Coo);
        GUI.Label(new Rect((Main.corner_px + 331.5f) / 1000f * Main.width, (Main.corner_py + 203f) / 1000f * Main.height, 500f / 1000f * Main.width, 25f / 1000f * Main.height), "( 程 序 号 )", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 11.5f) / 1000f * Main.width, (Main.corner_py + 228f) / 1000f * Main.height, 500f / 1000f * Main.width, 25f / 1000f * Main.height), "顺序号停止", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 186.5f) / 1000f * Main.width, (Main.corner_py + 228f) / 1000f * Main.height, 20f / 1000f * Main.width, 25f / 1000f * Main.height), "=", Main.sty_MostWords);
        GUI.Label(new Rect((Main.corner_px + 206.5f) / 1000f * Main.width, (Main.corner_py + 228f) / 1000f * Main.height, 120f / 1000f * Main.width, 25f / 1000f * Main.height), "", Main.sty_OffSet_Coo);
        GUI.Label(new Rect((Main.corner_px + 331.5f) / 1000f * Main.width, (Main.corner_py + 228f) / 1000f * Main.height, 500f / 1000f * Main.width, 25f / 1000f * Main.height), "( 顺 序 号 )", Main.sty_MostWords);

        GUI.Label(new Rect((Main.corner_px + 208.5f) / 1000f * Main.width, Main.argu_setting_cursor_y / 1000f * Main.height, Main.argu_setting_cursor_w / 1000f * Main.width, 22f / 1000f * Main.height), "", Main.sty_EDITCursor);

        GUI.Label(new Rect((Main.corner_px + 210f) / 1000f * Main.width, (Main.corner_py + 30f) / 1000f * Main.height, 20f / 1000f * Main.width, 29f / 1000f * Main.height), CooSystem_script.parameter_writabel, Main.sty_SmallNum);
        GUI.Label(new Rect((Main.corner_px + 210f) / 1000f * Main.width, (Main.corner_py + 55f) / 1000f * Main.height, 20f / 1000f * Main.width, 29f / 1000f * Main.height), CooSystem_script.TV_check, Main.sty_SmallNum);
        GUI.Label(new Rect((Main.corner_px + 210f) / 1000f * Main.width, (Main.corner_py + 80f) / 1000f * Main.height, 20f / 1000f * Main.width, 29f / 1000f * Main.height), CooSystem_script.hole_code, Main.sty_SmallNum);
        GUI.Label(new Rect((Main.corner_px + 210f) / 1000f * Main.width, (Main.corner_py + 105f) / 1000f * Main.height, 20f / 1000f * Main.width, 29f / 1000f * Main.height), CooSystem_script.input_unit, Main.sty_SmallNum);
        GUI.Label(new Rect((Main.corner_px + 218f) / 1000f * Main.width, (Main.corner_py + 130f) / 1000f * Main.height, 40f / 1000f * Main.width, 29f / 1000f * Main.height), Main.ArguStringGet_IO(CooSystem_script.IO), Main.sty_SmallNum);
        GUI.Label(new Rect((Main.corner_px + 210f) / 1000f * Main.width, (Main.corner_py + 155f) / 1000f * Main.height, 20f / 1000f * Main.width, 29f / 1000f * Main.height), CooSystem_script.sequence_number, Main.sty_SmallNum);
        GUI.Label(new Rect((Main.corner_px + 210f) / 1000f * Main.width, (Main.corner_py + 180f) / 1000f * Main.height, 20f / 1000f * Main.width, 29f / 1000f * Main.height), CooSystem_script.paper_tape, Main.sty_SmallNum);
        GUI.Label(new Rect((Main.corner_px + 227f) / 1000f * Main.width, (Main.corner_py + 205f) / 1000f * Main.height, 120f / 1000f * Main.width, 29f / 1000f * Main.height), Main.ArguStringGet(CooSystem_script.SN_stop1), Main.sty_SmallNum);
        GUI.Label(new Rect((Main.corner_px + 227f) / 1000f * Main.width, (Main.corner_py + 230f) / 1000f * Main.height, 120f / 1000f * Main.width, 29f / 1000f * Main.height), Main.ArguStringGet(CooSystem_script.SN_stop2), Main.sty_SmallNum);


        if (Main.OffSetOne)
        {
            Main.sty_BottomButton_1.normal.background = Main.t2d_BottomButton_u;
            Main.sty_BottomButton_2.normal.background = Main.t2d_BottomButton_d;
            Main.sty_BottomButton_3.normal.background = Main.t2d_BottomButton_u;
            Main.sty_BottomButton_4.normal.background = Main.t2d_BottomButton_u;
            Main.sty_BottomButton_5.normal.background = Main.t2d_BottomButton_u;
            GUI.Label(new Rect((Main.corner_px + 40f) / 1000f * Main.width, (Main.corner_py + 348f) / 1000f * Main.height, 70f / 1000f * Main.width, 25f / 1000f * Main.height), "刀 偏", Main.sty_BottomChooseMenu);
            GUI.Label(new Rect((Main.corner_px + 133f) / 1000f * Main.width, (Main.corner_py + 348f) / 1000f * Main.height, 500f / 1000f * Main.width, 300f / 1000f * Main.height), "设 定", Main.sty_BottomChooseMenu);
            GUI.Label(new Rect((Main.corner_px + 216f) / 1000f * Main.width, (Main.corner_py + 348f) / 1000f * Main.height, 500f / 1000f * Main.width, 300f / 1000f * Main.height), "坐标系", Main.sty_BottomChooseMenu);
            GUI.Label(new Rect((Main.corner_px + 385f) / 1000f * Main.width, (Main.corner_py + 348f) / 1000f * Main.height, 500f / 1000f * Main.width, 300f / 1000f * Main.height), "(操 作)", Main.sty_BottomChooseMenu);
            GUI.Label(new Rect((Main.corner_px + 481f) / 1000f * Main.width, (Main.corner_py + 349f) / 1000f * Main.height, 500f / 1000f * Main.width, 300f / 1000f * Main.height), "+", Main.sty_BottomChooseMenu);
        }
        else if (Main.OffSetTwo)
        {
            Main.sty_BottomButton_1.normal.background = Main.t2d_BottomButton_u;
            Main.sty_BottomButton_2.normal.background = Main.t2d_BottomButton_u;
            Main.sty_BottomButton_3.normal.background = Main.t2d_BottomButton_u;
            Main.sty_BottomButton_4.normal.background = Main.t2d_BottomButton_u;
            Main.sty_BottomButton_5.normal.background = Main.t2d_BottomButton_u;
            GUI.Label(new Rect((Main.corner_px + 2f) / 1000f * Main.width, (Main.corner_py + 348f) / 1000f * Main.height, 500f / 1000f * Main.width, 300f / 1000f * Main.height), "<", Main.sty_BottomChooseMenu);
            GUI.Label(new Rect((Main.corner_px + 36f) / 1000f * Main.width, (Main.corner_py + 348f) / 1000f * Main.height, 70f / 1000f * Main.width, 25f / 1000f * Main.height), "宏变量", Main.sty_BottomChooseMenu);
            GUI.Label(new Rect((Main.corner_px + 133f) / 1000f * Main.width, (Main.corner_py + 348f) / 1000f * Main.height, 500f / 1000f * Main.width, 300f / 1000f * Main.height), "模 式", Main.sty_BottomChooseMenu);
            GUI.Label(new Rect((Main.corner_px + 226f) / 1000f * Main.width, (Main.corner_py + 348f) / 1000f * Main.height, 500f / 1000f * Main.width, 300f / 1000f * Main.height), "操 作", Main.sty_BottomChooseMenu);
            GUI.Label(new Rect((Main.corner_px + 385f) / 1000f * Main.width, (Main.corner_py + 348f) / 1000f * Main.height, 500f / 1000f * Main.width, 300f / 1000f * Main.height), "(操 作)", Main.sty_BottomChooseMenu);
        }
    }