internal void pasteSelectedStatus2() { var elem = NeoOCI.create_from_selected(); if (elem is VNActor.Actor chara) { chara.import_status((ActorData)clipboard_status2); } else if (elem is Prop prop) { if (elem is Item i) { i.import_status((ItemData)clipboard_status2); } else if (elem is VNActor.Light l) { prop.import_status((LightData)clipboard_status2); } else { prop.import_status((NEOPropData)clipboard_status2); } } else { show_blocking_message_time_sc("Can't paste status 2"); } }
internal void copySelectedStatusToTracking(List <string> exclude) { var elem = NeoOCI.create_from_selected(); if (elem is VNActor.Actor chara) { var tmp_status = chara.export_full_status(); var actors = game.AllActors; foreach (var key in actors.Keys) { VNActor.Actor actor = (VNActor.Actor)actors[key]; if (actor.text_name == chara.text_name) { /* TODO * foreach (var keyEx in exclude) * { * tmp_status.Remove(keyEx); * } */ actor.import_status(tmp_status); return; } } show_blocking_message_time_sc("Can't find tracking char with same name"); } else { show_blocking_message_time_sc("Can't copy status"); } }
//import GameCursor, CameraControl /* * public static object vngame_window_studio(object vnButtonsStart, object vnButtonsActionsStart) * { * var game = vngameenginestudio.vngame_window_studio(vnButtonsStart, vnButtonsActionsStart); * return game; * } */ //changed by chickenman /* * public static object vngame_window_neo(object vnButtonsStart, object vnButtonsActionsStart) * { * //unity_util.clean_behaviors(); * //var game = unity_util.create_gui_behavior(NeoController); * return new NeoController; * } * * public static object vngame_window_phstudio(object vnButtonsStart, object vnButtonsActionsStart) * { * var game = vngameenginephstudio.vngame_window_phstudio(vnButtonsStart, vnButtonsActionsStart); * return game; * } */ // ---------------- --- dumping item tree ----------------- public static void dump_selected_item_tree() { NeoOCI item = NeoOCI.create_from_selected(); using (StreamWriter file = new StreamWriter(@"dump_selected_items.txt")) { _dump_item_tree(file, item, 0); } }
internal void delSelectedFromTrack() { var elem = NeoOCI.create_from_selected(); if (elem == null) { show_blocking_message_time_sc("Nothing selected"); return; } if (elem is VNActor.Actor chara) { var actors = game.AllActors; var id = ""; foreach (var actid in actors.Keys) { if (actors[actid].objctrl == elem.objctrl) { // found id = actid; break; } } if (id == "") { show_blocking_message_time_sc("Can't delete; seems this actor is not tracking yet"); return; } delActorFromTrack(id); } else if (elem is Prop) { var props = game.AllProps; var id = ""; foreach (var propid in props.Keys) { if (props[propid].objctrl == elem.objctrl) { id = propid; // found break; } } delPropFromTrack(id); } // updating set SceneFolders.LoadTrackedActorsAndProps(); }
internal void copySelectedStatus2() { var elem = NeoOCI.create_from_selected(); if (elem is VNActor.Actor chara) { clipboard_status2 = (IDataClass <IVNObject <object> >)chara.export_full_status(); } else if (elem is Prop prop) { clipboard_status2 = (IDataClass <IVNObject <object> >)prop.export_full_status(); } else { show_blocking_message_time_sc("Can't copy status 2"); } }
internal void changeSelTrackID(string toId) { if (toId == "") { show_blocking_message_time_sc("Please, set ID to change to first"); return; } var elem = NeoOCI.create_from_selected(); if (elem == null) { show_blocking_message_time_sc("Nothing selected"); return; } if (elem is VNActor.Actor chara) { var actors = game.AllActors; string id = ""; foreach (var actid in actors.Keys) { if (actors[actid].objctrl == elem.objctrl) { // found id = actid; break; } } //self.delActorFromTrack(actid) if (id == "") { show_blocking_message_time_sc("Can't find actor to change ID"); return; } // actually changing ID changeActorTrackId(id, toId); } // updating set SceneFolders.LoadTrackedActorsAndProps(); }