alloowishus
November 27th, 2024, 04:05
I am trying to switch the placement of two tables (62769) which seems exceedingly difficult. Code is attached below
<line_column name="divider" />
<spacer_column_item name="attacktable_spacer" />
<hs name="attacktableID" source="attacktable.tableid" />
<string_columnh_tablename name="attacktablename" source="attacktable.name">
<anchored width="138" />
<sourcename>attacktable</sourcename>
<tabletype>Attack</tabletype>
<disabled />
</string_columnh_tablename>
<DropDown name="attacktablenamedropdown">
<target>attacktablename</target>
<position>0,5</position>
</DropDown>
<number_columnh_tablemod name="max_level">
<invisible />
</number_columnh_tablemod>
<string_columnh_item name="max_rank_size">
<anchored>
<top relation="current" />
<left offset="258" />
</anchored>
<disabled />
<script>
function onInit()
super.onInit();
setValue(Rules_Combat.GetMaxRankSize(window.max_le vel.getValue()));
end
function onValueChanged()
if super and super.onValueChanged then
super.onValueChanged();
end
window.max_level.setValue(Rules_Combat.GetMaxLevel (getValue()));
end
</script>
</string_columnh_item>
<DropDown name="max_rank_sizedropdown">
<target>max_rank_size</target>
<position>0,5</position>
<script>
function onInit()
super.onInit();
updateList();
end
function updateList()
local maxRankSizeList = Rules_Combat.MaxRankSizeList();
if #maxRankSizeList > 0 then
clear();
addItems(maxRankSizeList);
end
end
</script>
</DropDown>
<label_fieldtop name="attacktablename_label">
<anchored to="attacktablename" />
<center merge="delete" />
<static textres="item_label_tablename" />
</label_fieldtop>
<label_fieldtop name="max_rank_size_label">
<anchored to="max_rank_size" />
<center merge="delete" />
<static textres="item_label_max_rank_size" />
</label_fieldtop>
<label_column_CoreRPG name="attacktable_label">
<anchored>
<top relation="relative" offset="10" />
</anchored>
<static textres="item_label_attacktable" />
<tooltip textres="item_tooltip_attacktable" />
<script>
function onDrop(x,y,dragdata)
local customData = dragdata.getCustomData();
if not customData or not customData.type or customData.type~="RMCTable" then
return false;
end
window.attacktablename.setValue(customData.tableID , customData.tableName);
return true;
end
</script>
</label_column_CoreRPG>
<line_column name="divider" />
<spacer_column_item name="attacktable_spacer" />
<hs name="attacktableID" source="attacktable.tableid" />
<string_columnh_tablename name="attacktablename" source="attacktable.name">
<anchored width="138" />
<sourcename>attacktable</sourcename>
<tabletype>Attack</tabletype>
<disabled />
</string_columnh_tablename>
<DropDown name="attacktablenamedropdown">
<target>attacktablename</target>
<position>0,5</position>
</DropDown>
<number_columnh_tablemod name="max_level">
<invisible />
</number_columnh_tablemod>
<string_columnh_item name="max_rank_size">
<anchored>
<top relation="current" />
<left offset="258" />
</anchored>
<disabled />
<script>
function onInit()
super.onInit();
setValue(Rules_Combat.GetMaxRankSize(window.max_le vel.getValue()));
end
function onValueChanged()
if super and super.onValueChanged then
super.onValueChanged();
end
window.max_level.setValue(Rules_Combat.GetMaxLevel (getValue()));
end
</script>
</string_columnh_item>
<DropDown name="max_rank_sizedropdown">
<target>max_rank_size</target>
<position>0,5</position>
<script>
function onInit()
super.onInit();
updateList();
end
function updateList()
local maxRankSizeList = Rules_Combat.MaxRankSizeList();
if #maxRankSizeList > 0 then
clear();
addItems(maxRankSizeList);
end
end
</script>
</DropDown>
<label_fieldtop name="attacktablename_label">
<anchored to="attacktablename" />
<center merge="delete" />
<static textres="item_label_tablename" />
</label_fieldtop>
<label_fieldtop name="max_rank_size_label">
<anchored to="max_rank_size" />
<center merge="delete" />
<static textres="item_label_max_rank_size" />
</label_fieldtop>
<label_column_CoreRPG name="attacktable_label">
<anchored>
<top relation="relative" offset="10" />
</anchored>
<static textres="item_label_attacktable" />
<tooltip textres="item_tooltip_attacktable" />
<script>
function onDrop(x,y,dragdata)
local customData = dragdata.getCustomData();
if not customData or not customData.type or customData.type~="RMCTable" then
return false;
end
window.attacktablename.setValue(customData.tableID , customData.tableName);
return true;
end
</script>
</label_column_CoreRPG>