# Set Screen Button Border Image

Grammar — Set screen button screenButtonID|ID border image to borderImage and hover image to hoverImage with border type borderType|Border type
FlagsAction

Sets the border image for a screen button.

# Arguments

  • int — ScreenButtonID
  • string<filepath> — BorderImage
  • string<filepath> — HoverImage
  • int<preset::ImageType> — BorderType

Returns — void

void libNtve_gf_SetScreenButtonBorderImage(
	int lp_screenButtonID,
	string lp_borderImage,
	string lp_hoverImage,
	int lp_borderType,
);

Category: Dialog / Screen Button

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:577

    libNtve_gf_SetDialogItemImage(libNtve_gf_ScreenButton(lp_screenButtonID), "Assets\\Textures\\ui_button_generic_normalpressed_terran.dds", PlayerGroupAll());
    libNtve_gf_SetDialogItemImage2(libNtve_gf_ScreenButton(lp_screenButtonID), "Assets\\Textures\\ui_button_generic_normaloverpressedover_terran.dds", PlayerGroupAll());
    libNtve_gf_SetScreenButtonBorderImage(lp_screenButtonID, "Assets\\Textures\\ui_button_generic_normalpressed_terran.dds", "Assets\\Textures\\ui_button_generic_normaloverpressedover_terran.dds", c_triggerImageTypeBorder);
    libNtve_gf_SetScreenButtonFlashingBorderImage(lp_screenButtonID, "Assets\\Textures\\ui_button_generic_anim_terran.dds", "Assets\\Textures\\ui_button_generic_normalpressed_terran.dds", c_triggerImageTypeBorder);
    libNtve_gf_SetDialogItemStyle(libNtve_gf_ScreenButton(lp_screenButtonID), "TutorialReplyButtonText", PlayerGroupAll());

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:577

    libNtve_gf_SetDialogItemImage(libNtve_gf_ScreenButton(lp_screenButtonID), "Assets\\Textures\\ui_button_generic_normalpressed_terran.dds", PlayerGroupAll());
    libNtve_gf_SetDialogItemImage2(libNtve_gf_ScreenButton(lp_screenButtonID), "Assets\\Textures\\ui_button_generic_normaloverpressedover_terran.dds", PlayerGroupAll());
    libNtve_gf_SetScreenButtonBorderImage(lp_screenButtonID, "Assets\\Textures\\ui_button_generic_normalpressed_terran.dds", "Assets\\Textures\\ui_button_generic_normaloverpressedover_terran.dds", c_triggerImageTypeBorder);
    libNtve_gf_SetScreenButtonFlashingBorderImage(lp_screenButtonID, "Assets\\Textures\\ui_button_generic_anim_terran.dds", "Assets\\Textures\\ui_button_generic_normalpressed_terran.dds", c_triggerImageTypeBorder);
    libNtve_gf_SetDialogItemStyle(libNtve_gf_ScreenButton(lp_screenButtonID), "TutorialReplyButtonText", PlayerGroupAll());

mods/challenges.sc2modbase.sc2data/LibChal.galaxy:281

        libNtve_gf_SetDialogItemImage(libNtve_gf_ScreenButton(lp_screenButtonID), "Assets\\Textures\\ui_mission_hackingbuttonglow_normalpressed_protoss.dds", PlayerGroupAll());
        libNtve_gf_SetDialogItemStyle(libNtve_gf_ScreenButton(lp_screenButtonID), "ChallengeReadyButtonProtoss", PlayerGroupAll());
        libNtve_gf_SetScreenButtonBorderImage(lp_screenButtonID, "Assets\\Textures\\ui_mission_hackingbuttonglow_normalpressed_protoss.dds", "Assets\\Textures\\ui_mission_hackingbuttonglow_normaloverpressedover_protoss.dds", c_triggerImageTypeEndCap);
        libNtve_gf_SetScreenButtonFlashingBorderImage(lp_screenButtonID, "Assets\\Textures\\ui_mission_hackingbuttonglow_animr_protoss.dds", "Assets\\Textures\\ui_mission_hackingbuttonglow_normaloverpressedover_protoss.dds", c_triggerImageTypeEndCap);
        libNtve_gf_FlashScreenButton(lp_screenButtonID, 3.0, ColorWithAlpha(16.08, 16.08, 99.61, 74.90), ColorWithAlpha(0.00, 0.00, 0.00, 0.00));

mods/challenges.sc2modbase.sc2data/LibChal.galaxy:288

        libNtve_gf_SetDialogItemImage(libNtve_gf_ScreenButton(lp_screenButtonID), "Assets\\Textures\\ui_mission_hackingbuttonglow_normalpressed.dds", PlayerGroupAll());
        libNtve_gf_SetDialogItemStyle(libNtve_gf_ScreenButton(lp_screenButtonID), "ChallengeReadyButtonTerran", PlayerGroupAll());
        libNtve_gf_SetScreenButtonBorderImage(lp_screenButtonID, "Assets\\Textures\\ui_mission_hackingbuttonglow_normalpressed.dds", "Assets\\Textures\\ui_mission_hackingbuttonglow_normaloverpressedover.dds", c_triggerImageTypeEndCap);
        libNtve_gf_SetScreenButtonFlashingBorderImage(lp_screenButtonID, "Assets\\Textures\\ui_mission_hackingbuttonglow_anim.dds", "Assets\\Textures\\ui_mission_hackingbuttonglow_normaloverpressedover.dds", c_triggerImageTypeEndCap);
        libNtve_gf_FlashScreenButton(lp_screenButtonID, 3.0, ColorWithAlpha(0.00, 68.24, 0.00, 74.51), ColorWithAlpha(0.00, 0.00, 0.00, 0.00));

mods/challenges.sc2modbase.sc2data/LibChal.galaxy:295

        libNtve_gf_SetDialogItemImage(libNtve_gf_ScreenButton(lp_screenButtonID), "Assets\\Textures\\ui_mission_hackingbuttonglow_normalpressed_zerg.dds", PlayerGroupAll());
        libNtve_gf_SetDialogItemStyle(libNtve_gf_ScreenButton(lp_screenButtonID), "ChallengeReadyButtonZerg", PlayerGroupAll());
        libNtve_gf_SetScreenButtonBorderImage(lp_screenButtonID, "Assets\\Textures\\ui_mission_hackingbuttonglow_normalpressed_zerg.dds", "Assets\\Textures\\ui_mission_hackingbuttonglow_normaloverpressedover_zerg.dds", c_triggerImageTypeEndCap);
        libNtve_gf_SetScreenButtonFlashingBorderImage(lp_screenButtonID, "Assets\\Textures\\ui_mission_hackingbuttonglow_anim_zerg.dds", "Assets\\Textures\\ui_mission_hackingbuttonglow_normaloverpressedover_zerg.dds", c_triggerImageTypeEndCap);
        libNtve_gf_FlashScreenButton(lp_screenButtonID, 3.0, ColorWithAlpha(99.22, 52.55, 0.78, 74.51), ColorWithAlpha(0.00, 0.00, 0.00, 0.00));