1 /* 2 Copyright © 2020, Inochi2D Project 3 Distributed under the 2-Clause BSD License, see LICENSE file. 4 5 Authors: Luna Nielsen 6 */ 7 module creator.panels.tracking; 8 import creator.panels; 9 import creator.windows; 10 import creator.widgets; 11 import creator : incActivePuppet; 12 import bindbc.imgui; 13 import inochi2d; 14 import std.conv; 15 import i18n; 16 17 /** 18 The textures frame 19 */ 20 class TrackingPanel : Panel { 21 private: 22 bool trackVMC; 23 bool trackOSF; 24 int portN = 39540; 25 26 protected: 27 override 28 void onUpdate() { 29 // TODO: check if in model test mode 30 31 if (igCheckbox(__("VMC Receiver"), &trackVMC)) trackOSF = false; 32 if (trackVMC) { 33 if (igInputInt(__("Port"), &portN, 1, 1000, ImGuiInputTextFlags.None)) { 34 portN = clamp(portN, 0, 65535); 35 } 36 } 37 38 if (igCheckbox(__("OpenSeeFace Receiver"), &trackOSF)) trackVMC = false; 39 if (trackOSF) { 40 41 } 42 } 43 44 public: 45 this() { 46 super("Tracking", _("Tracking"), false); 47 } 48 } 49 50 /** 51 Generate tracking panel frame 52 */ 53 mixin incPanel!TrackingPanel; 54 55