HorizonUI Plugin Marketplace連結

 

關於超連結功能

 

基本上就是在每個文字區塊後面動態放置一個button,

 

其完整語法如下:

<a href=“Seg1ClickMessage”  hoverColor=“#FFFF0055” visitedColor=“#555555FF” filePath=“Blueprint’/Game/UMG/DialogueMsgTextTest/ButtonStyle/BP_DialogueBackgroundButtonStyle1.BP_DialogueBackgroundButtonStyle1’”> Test Click Seg1

<a href=“Seg2ClickMessage”  hoverColor=“#FFFF0055” filePath=“Blueprint’/Game/UMG/DialogueMsgTextTest/ButtonStyle/BP_DialogueBackgroundButtonStyle2’”> Test Click Seg2


<a href=“Seg3ClickMessage”  hoverColor=“#FFFF0055” filePath=“/Game/UMG/DialogueMsgTextTest/ButtonStyle/BP_DialogueBackgroundButtonStyle3”> Test Click Seg3

其中href當滑鼠指標觸碰該button的事件之後,便會將內容自動回呼給使用者,filePath則是用來指定該button的樣式,我們可以建立一個BP類別並繼承HorizonButton之後進行相關的button配置,例如hover過去的顏色、材質等等所有button中預設的功能。而hoverColor則是當我們hover到該字段的時候,其上面文字的顏色。visitedColor則是在點擊之後,我們的字段會變成什麼顏色。

 

 

當然我們也可以使用style的版本:

This is nested   tag node   HyperText Dialogue Text  Block

若是要直接放在text或button中,則只能藉助style版本的功能才行:

This is rich text test using style:

This is strawberry:

This is Watermellon:

 

This is animated man using material:

HorizonFlipbookWidget(use tag pfb) Only Supported by using style:

 

有了這個功能之後,相信就能在遊戲中帶給玩家更多樣的遊戲體驗了!