標準UI更新メモ(パッチ 2018.06.14)

ただの覚え書き。
昨日(日本時間だと本日?)のパッチでのUserInterface/Default.zip更新内容。

Iconsディレクトリ

Buffs_Debuffs/red/ アイコン追加

00024035_Feint.dds 00024035_Feint.dds 追加。

icons.xml

更新。
上記アイコン 00024035_Feint.dds のアイコンID定義追加。
(なのだけど、既存の ID:49989 の行が重複して追加されちゃってますけど・・・? )

*** Icons/icons.xml	Wed Mar 14 01:01:46 2018
--- Icons/icons.xml	Tue May 01 01:01:50 2018
***************
*** 548,549 ****
--- 548,554 ----
  		<Icon id="49989" texture="Icons/Buffs_Debuffs/red/00049989_broken_bone_buff.dds" name="Broken bone debuff" />
+ 		<Icon id="49989" texture="Icons/Buffs_Debuffs/red/00049989_broken_bone_buff.dds" name="Broken bone debuff" />
+
+ 		<!--New as of Pub 100-->
+ 		<Icon id="24035" texture="Icons/Buffs_Debuffs/red/00024035_Feint.dds" name="Feint debuff" />
+

Sourceディレクトリ

ContainerWindow.xml

更新。
恐らく、オプション → Containers → Enable Extra Bright Backgound を有効にした時のテクスチャ指定の修正。

*** Source/ContainerWindow.xml	Thu Aug 31 15:22:32 2017
--- Source/ContainerWindow.xml	Sat Apr 14 01:02:04 2018
***************
*** 152,158 ****
  			<TexCoords>
! 				<Normal texture="hud_image" x="0" y="754" />
! 				<NormalHighlit texture="hud_image" x="50" y="754" />
! 				<Disabled texture="hud_image" x="0" y="754" />
! 				<Pressed texture="hud_image" x="0" y="754" />
! 				<PressedHighlit texture="hud_image" x="50" y="754" />
  			</TexCoords>
--- 152,158 ----
  			<TexCoords>
! 				<Normal texture="hud_image" x="412" y="971" />
! 				<NormalHighlit texture="hud_image" x="462" y="971" />
! 				<Disabled texture="hud_image" x="412" y="971" />
! 				<Pressed texture="hud_image" x="412" y="971" />
! 				<PressedHighlit texture="hud_image" x="462" y="971" />
  			</TexCoords>

PartyHealthBar.lua

更新。
パーティメンバーでは無くなったmobのパーティ用ヘルスバーを閉じる時の処理に、通常のヘルスバーを開く処理が追加されている様です。(多分・・・)

*** Source/PartyHealthBar.lua	Thu Aug 31 15:22:34 2017
--- Source/PartyHealthBar.lua	Wed May 23 01:01:50 2018
***************
*** 138,140 ****
  		local currentId = WindowGetId(windowName)
! 		if (currentId ~= mobileId) then
  			PartyHealthBar.CloseWindowByIndex(windowIndex)
--- 138,148 ----
  		local currentId = WindowGetId(windowName)
! 		if (currentId ~= mobileId) then
! 			if(currentId ~= 0 and not HealthBarManager.IsPartyMember(currentId)) then
! 				MobileHealthBar.Forced = true
! 				MobileHealthBar.CreateHealthBar(currentId)
! 				MobileHealthBar.Handled[currentId] = true
! 				local newWindowName = "MobileHealthBar_"..currentId
! 				WindowUtils.CopyScreenPosition( windowName, newWindowName, 0, 0)
! 				MobileHealthBar.Forced = nil
! 			end
  			PartyHealthBar.CloseWindowByIndex(windowIndex)

TradeWindow.lua

更新。
トレードウィンドウのgp入力欄で、3桁区切りのカンマが入るようになったみたいです。(gp入力フィールドからフォーカスが外れた時にカンマ付きで表示される)

*** Source/TradeWindow.lua	Thu Aug 31 15:22:34 2017
--- Source/TradeWindow.lua	Thu Apr 19 01:01:42 2018
***************
*** 81,82 ****
--- 81,83 ----
  	LabelSetText(this.. "PlayerWaitingGoldAmountGold", L""..0)
+ 	LabelSetText(this.. "PlayerAcceptGoldAmountGoldWtihCommas", L""..0)

***************
*** 84,85 ****
--- 85,87 ----
  	LabelSetText(this.. "PlayerWaitingGoldAmountPlat", L""..0)
+ 	LabelSetText(this.. "PlayerAcceptGoldAmountPlatWtihCommas", L""..0)

***************
*** 597,598 ****
--- 599,665 ----

+ function TradeWindow.OnKeyEnter()
+ 	local this = SystemData.ActiveWindow.name
+ 	WindowSetShowing(this, false)
+ 	WindowSetShowing(this .. "WtihCommas", true)
+ end
+
+ function TradeWindow.OnKeyTab()
+ 	local this = SystemData.ActiveWindow.name
+ 	local parentWindow = WindowGetParent(this)
+ 	local this = WindowGetParent(parentWindow)
+
+ 	local playerAcceptGoldAmountPlat = this .. "PlayerAcceptGoldAmountPlat"
+ 	local playerAcceptGoldAmountGold = this .. "PlayerAcceptGoldAmountGold"
+ 	local platAmountWithCommas = playerAcceptGoldAmountPlat .. "WtihCommas"
+ 	local goldAmountWithCommas = playerAcceptGoldAmountGold .. "WtihCommas"
+ 	if WindowHasFocus(playerAcceptGoldAmountGold) then
+ 		WindowSetShowing(goldAmountWithCommas, true)
+ 		WindowSetShowing(playerAcceptGoldAmountGold, false)
+ 		WindowSetShowing(platAmountWithCommas, false)
+ 		WindowSetShowing(playerAcceptGoldAmountPlat, true)
+ 		WindowAssignFocus(playerAcceptGoldAmountPlat, true)
+ 	else
+ 		WindowSetShowing(platAmountWithCommas, true)
+ 		WindowSetShowing(playerAcceptGoldAmountPlat, false)
+ 		WindowSetShowing(goldAmountWithCommas, false)
+ 		WindowSetShowing(playerAcceptGoldAmountGold, true)
+ 		WindowAssignFocus(playerAcceptGoldAmountGold, true)
+ 	end
+ end
+
+ function TradeWindow.OnLButtonDown()
+ 	local this = SystemData.ActiveWindow.name
+ 	local textBox = string.gsub(this, "WtihCommas", "")
+ 	WindowSetShowing(this, false)
+ 	WindowSetShowing(textBox, true)
+ 	WindowAssignFocus(textBox, true)
+ end
+
+ function TradeWindow.OnTextChanged()
+ 	local this = SystemData.ActiveWindow.name
+ 	local parentWindow = WindowGetParent(this)
+ 	local this = WindowGetParent(parentWindow)
+ 	local gold = tonumber(TextEditBoxGetText(this.."PlayerAcceptGoldAmountGold"))
+ 	local plat = tonumber(TextEditBoxGetText(this.."PlayerAcceptGoldAmountPlat"))
+ 	local goldLabel = this .. "PlayerAcceptGoldAmountGoldWtihCommas"
+ 	local platLabel = this .. "PlayerAcceptGoldAmountPlatWtihCommas"
+ 	LabelSetText(goldLabel, WindowUtils.AddCommasToNumber(gold))
+ 	LabelSetText(platLabel, WindowUtils.AddCommasToNumber(plat))
+ end
+ function TradeWindow.OnUpdate()
+ 	local this = SystemData.ActiveWindow.name
+ 	local playerAcceptGoldAmountGold = this .. "PlayerAcceptGoldAmountGold"
+ 	local playerAcceptGoldAmountPlat = this .. "PlayerAcceptGoldAmountPlat"

+ 	if not WindowHasFocus(playerAcceptGoldAmountGold) then
+ 		local goldAmountWithCommas = playerAcceptGoldAmountGold .. "WtihCommas"
+ 		WindowSetShowing(goldAmountWithCommas, true)
+ 		WindowSetShowing(playerAcceptGoldAmountGold, false)
+ 	end
+
+ 	if not WindowHasFocus(playerAcceptGoldAmountPlat) then
+ 		local platAmountWithCommas = playerAcceptGoldAmountPlat .. "WtihCommas"
+ 		WindowSetShowing(platAmountWithCommas, true)
+ 		WindowSetShowing(playerAcceptGoldAmountPlat, false)
+ 	end
+ end

TradeWindow.xml

更新。
ウィンドウ名の AmountGoldWtihCommas 、 AmountPlatWtihCommas って タイポなの?

*** Source/TradeWindow.xml	Thu Aug 31 15:22:34 2017
--- Source/TradeWindow.xml	Thu Apr 19 01:01:42 2018
***************
*** 81,83 ****
  					<EventHandlers>
! 						<EventHandler event="OnKeyDown" function="TradeWindow.OnKeyDown" />
  					</EventHandlers>
--- 81,86 ----
  					<EventHandlers>
! 						<EventHandler event="OnKeyDown" function="TradeWindow.OnKeyDown" />
! 						<EventHandler event="OnKeyEnter" function="TradeWindow.OnKeyEnter" />
! 						<EventHandler event="OnKeyTab" function="TradeWindow.OnKeyTab" />
! 						<EventHandler event="OnTextChanged" function="TradeWindow.OnTextChanged" />
  					</EventHandlers>
***************
*** 85,86 ****
--- 88,103 ----
  				</EditBox>
+ 				<Label name="$parentAmountGoldWtihCommas" font="UO_DefaultText" maxchars="11" linespacing="20" textalign="left" wordwrap="false" autoresize="false">
+ 				  <Size>
+ 					<AbsPoint x="100" y="20" />
+ 				  </Size>
+ 				  <Anchors>
+ 					<Anchor point="topight" relativePoint="topleft" relativeTo="$parentImageGold">
+ 					  <AbsPoint x="55" y="5" />
+ 					</Anchor>
+ 				  </Anchors>
+ 				  <EventHandlers>
+ 					<EventHandler event="OnLButtonDown" function="TradeWindow.OnLButtonDown" />
+ 				  </EventHandlers>
+ 				  <Color r="255" g="255" b="255" a="255" />
+ 				</Label>

***************
*** 110,114 ****
  						<EventHandler event="OnKeyDown" function="TradeWindow.OnKeyDown" />
  					</EventHandlers>
  					<Color r="255" g="255" b="255" a="255" />
! 				</EditBox>
  			</Windows>
--- 127,148 ----
  						<EventHandler event="OnKeyDown" function="TradeWindow.OnKeyDown" />
+ 						<EventHandler event="OnKeyEnter" function="TradeWindow.OnKeyEnter" />
+ 						<EventHandler event="OnKeyTab" function="TradeWindow.OnKeyTab" />
+ 						<EventHandler event="OnTextChanged" function="TradeWindow.OnTextChanged" />
  					</EventHandlers>
  					<Color r="255" g="255" b="255" a="255" />
! 				</EditBox>
! 				<Label name="$parentAmountPlatWtihCommas" font="UO_DefaultText" maxchars="11" linespacing="20" textalign="left" wordwrap="false" autoresize="false">
! 				  <Size>
! 					<AbsPoint x="100" y="20" />
! 				  </Size>
! 				  <Anchors>
! 					<Anchor point="topight" relativePoint="topleft" relativeTo="$parentImagePlat">
! 					  <AbsPoint x="55" y="5" />
! 					</Anchor>
! 				  </Anchors>
! 				  <EventHandlers>
! 					<EventHandler event="OnLButtonDown" function="TradeWindow.OnLButtonDown" />
! 				  </EventHandlers>
! 				  <Color r="255" g="255" b="255" a="255" />
! 				</Label>
  			</Windows>
***************
*** 338,339 ****
--- 372,374 ----
  				<EventHandler event="OnShutdown" function="TradeWindow.Shutdown" />
+ 				<EventHandler event="OnUpdate" function="TradeWindow.OnUpdate" />
  			</EventHandlers>

Texturesディレクトリ

00000020_Hud.dds

更新。
下の画像は、左側が更新された 00000020_Hud.dds。(50%に縮小してます)
右側が更新前の画像と xor をとった所。

コンテナ用テクスチャの修正と、レーダーマップ前面のテクスチャにガラス面の様な処理が追加されてます。

00000020_Hud.dds(2018-06-14)

 

標準UIの更新内容は以上です。
ちなみに、これらに伴うClifeUIの更新はありません。

コメントを残す

※ 送信されたコメントは、管理者の承認後に公開されます。