996引擎三端pc聊天框添加手机端表情和修改分辨率按钮

适用:3.70.4

效果:

修改文件GUIExport\main\main_property_win32.lua

在合适的位置加入代码

	-- Create Button_zdy1 r8
	local Button_zdy1 = GUI:Button_Create(Panel_chat_funcs, "Button_zdy1", 203, 7, "res/private/main-win32/1900011031.png")
	GUI:Button_loadTexturePressed(Button_zdy1, "res/private/main-win32/1900011032.png")
	GUI:Button_setScale9Slice(Button_zdy1, 2, 2, 4, 4)
	GUI:setContentSize(Button_zdy1, 27, 13)
	GUI:setIgnoreContentAdaptWithSize(Button_zdy1, false)
	GUI:Button_setTitleText(Button_zdy1, [[]])
	GUI:Button_setTitleColor(Button_zdy1, "#414146")
	GUI:Button_setTitleFontSize(Button_zdy1, 14)
	GUI:Button_titleEnableOutline(Button_zdy1, "#000000", 1)
	GUI:setChineseName(Button_zdy1, "聊天_表情_按钮")
	GUI:setAnchorPoint(Button_zdy1, 0.50, 0.50)
	GUI:setTouchEnabled(Button_zdy1, true)
	GUI:setTag(Button_zdy1, 227)
	TAGOBJ["227"] = Button_zdy1

	-- Create Button_zdy2 r8
	local Button_zdy2 = GUI:Button_Create(Panel_chat_funcs, "Button_zdy2", 230, 7, "res/private/main-win32/1900011035.png")
	GUI:Button_loadTexturePressed(Button_zdy2, "res/private/main-win32/1900011036.png")
	GUI:Button_setScale9Slice(Button_zdy2, 2, 2, 4, 4)
	GUI:setContentSize(Button_zdy2, 27, 13)
	GUI:setIgnoreContentAdaptWithSize(Button_zdy2, false)
	GUI:Button_setTitleText(Button_zdy2, [[]])
	GUI:Button_setTitleColor(Button_zdy2, "#414146")
	GUI:Button_setTitleFontSize(Button_zdy2, 14)
	GUI:Button_titleEnableOutline(Button_zdy2, "#000000", 1)
	GUI:setChineseName(Button_zdy2, "聊天_分辨率_按钮")
	GUI:setAnchorPoint(Button_zdy2, 0.50, 0.50)
	GUI:setTouchEnabled(Button_zdy2, true)
	GUI:setTag(Button_zdy2, 227)
	TAGOBJ["227"] = Button_zdy2

如图

修改文件GUILayout\main\MainProperty_win32.lua

在合适的位置加入代码

	-- 手机端表情R8
    GUI:addOnClickEvent(MainProperty._ui.Button_zdy1, function()
        SL:JumpTo(114)
        SL:PlayBtnClickAudio()
    end)
    GUI:addMouseOverTips(MainProperty._ui.Button_zdy1, "手机端表情", { x = 0, y = 0 })
	
	-- 修改分辨率R8
    GUI:addOnClickEvent(MainProperty._ui.Button_zdy2, function()
        SL:JumpTo(113)
        SL:PlayBtnClickAudio()
    end)
    GUI:addMouseOverTips(MainProperty._ui.Button_zdy2, "修改分辨率", { x = 0, y = 0 })

如图: