xml書き換え/Alpha16/クラフト個数手入力時の桁数上限拡大

Last-modified: 2018-09-07 (金) 17:23:12
  • キーボードからの手入力では999個までしか指定できない「アイテムのクラフト個数指定の桁数」を拡張する方法。
    • character_limitの値を3にすれば3桁(999個)まで、5にすれば5桁(99,999個)までとなる。
  • 上限桁数を増やすことでPC処理の負担が増えたといった報告もあり。変更する場合は自己責任で。
    • バニラ環境下における最大クラフト個数は、Small Stoneをバックパックに満載してCrushed Sandを作った場合の240,000個。
      拡張するにしても6桁以上にする必要はないだろう。



(7dtdインストールフォルダ)/Data/Config/XUi/controls.xml 119行目

	<count_control_input>
		<panel controller="TextInput" pos="12,-6" width="30" height="28" value="1"
			active_text_color="[white]" caret_color="[white]" selection_color="[mediumGrey_half_alpha]"
-			character_limit="3" validation="integer" backgroundcolor="[black]" on_press="true" snapCursor="true" virtual_keyboard_prompt="vkPromptCount">
+			character_limit="5" validation="integer" backgroundcolor="[black]" on_press="true" snapCursor="true" virtual_keyboard_prompt="vkPromptCount">
			<sprite depth="1" name="background" color="[black]" type="sliced"/>
			<label depth="2" name="text" pos="0,-2" font_size="26" justify="center" pivot="topleft"/>
		</panel>
	</count_control_input>