Elaztek Developer Hub
Blamite Game Engine - blam!  00310.02.05.21.0336.blamite
The core library for the Blamite Game Engine.
tagref.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 
5 #include "../BlamPluginField.h"
6 #include "../../tags.h"
7 
15 {
16 private:
17  std::vector<std::string> valid_classes;
18  int active_class_index = 0;
19  std::string active_tag_class_label;
20 
21  std::vector<BlamTagData> filtered_tag_list;
22  int active_tag_index = 0;
23 
24 public:
25  TagReferenceField(std::string _display_name, std::string _extra_info, std::vector<std::string> _valid_classes);
26 
27  std::string GetFieldXMLString(int offset);
28  void ShowImPropertyControl();
29 };
TagReferenceField::GetFieldXMLString
std::string GetFieldXMLString(int offset)
Generates a string representing an XML node associated with this tag field, used for generating plugi...
Definition: tagref.cpp:14
TagReferenceField
Class representing a tag reference, or tagref for short.
Definition: tagref.h:14
BlamPluginField
Base class representing a plugin field.
Definition: BlamPluginField.h:49
TagReferenceField::TagReferenceField
TagReferenceField(std::string _display_name, std::string _extra_info, std::vector< std::string > _valid_classes)
Definition: tagref.cpp:6
TagReferenceField::ShowImPropertyControl
void ShowImPropertyControl()
Shows a set of ImGUI controls representing the tag field.
Definition: tagref.cpp:54