Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jameslkingsley/98b2be1ebed3f65c08ddb0b594f599cf to your computer and use it in GitHub Desktop.
Save jameslkingsley/98b2be1ebed3f65c08ddb0b594f599cf to your computer and use it in GitHub Desktop.
class GVARMAIN(attributes) {
class ADDON {
class interface {
displayName = CSTRING(Title);
actionConfirm = "";
actionCancel = "";
class AttributeCategories {
class Terrain {
class AttributeItems {
class Detail {
displayName = CSTRING(Detail_Name);
tooltipText = CSTRING(Detail_Tooltip);
class AttributeControls {
class Options {
condition = "true";
type = "COMBO";
labels[] = {"Low", "Medium", "High", "Very High"};
values[] = {25, 12.5, 6.25, 3.125};
selected = QGVAR(terrainDetail);
expression = QUOTE(\
systemChat str _this;\
);
};
};
};
class Distance {
displayName = CSTRING(Distance_Name);
tooltipText = CSTRING(Distance_Tooltip);
class AttributeControls {
class Options {
condition = "true";
type = "SLIDER";
range[] = {500, 10000};
step = 500;
position = QGVAR(viewDistance);
expression = QUOTE(\
systemChat str _this;\
);
};
};
};
};
};
};
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment