Lua接口/客户端函数索引/PlayerShop:修订间差异
来自天龙知识库
跳到导航跳到搜索
新建客户端 Lua 接口页:全局函数、对象方法、窗口操作与客户端事件 |
新建客户端 Lua 接口页:全局函数、对象方法、窗口操作与客户端事件 |
||
| 第7行: | 第7行: | ||
<div style="margin-top:6px;color:#657078;">实现类 <code style="white-space:normal;overflow-wrap:anywhere;">PlayerShop</code> · 87 个方法</div> | <div style="margin-top:6px;color:#657078;">实现类 <code style="white-space:normal;overflow-wrap:anywhere;">PlayerShop</code> · 87 个方法</div> | ||
</div> | </div> | ||
<div style="margin:10px 0;padding:10px 12px;border-left:3px solid #9a7940;background:#faf7f0;font-size:13px;color:#5f5136;"> | <div style="margin:10px 0;padding:10px 12px;border-left:3px solid #9a7940;background:#faf7f0;font-size:13px;color:#5f5136;">本页信息由客户端 C++ 绑定源码与 230 个界面脚本自动整理:参数取实现体的 <code>args[n]</code> 取值点(对象方法已扣除 <code>self</code> 占用的栈位),调用示例取脚本中的真实调用,<b>未经运行验证</b>;用途摘要按实现体归纳,仅供参考。</div> | ||
== 调用方式 == | == 调用方式 == | ||
对象方法以 <code style="white-space:normal;overflow-wrap:anywhere;">PlayerShop:方法名(参数)</code> 形式调用,例如 <code style="white-space:normal;overflow-wrap:anywhere;">PlayerShop:GetCommercialFactor()</code>。各方法的参数见下表,点方法名进入独立页。 | |||
对象名 <code style="white-space:normal;overflow-wrap:anywhere;">PlayerShop</code> 是全局对象,可直接使用。 | 对象名 <code style="white-space:normal;overflow-wrap:anywhere;">PlayerShop</code> 是全局对象,可直接使用。 | ||
| 第292行: | 第292行: | ||
== 脚本中的调用 == | == 脚本中的调用 == | ||
以下是该对象在客户端界面脚本里的调用点(整理为注释,便于检索): | 以下是该对象在客户端界面脚本里的调用点(整理为注释,便于检索): | ||
<pre style="white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7;padding:12px;background:#f5f7f8;border:1px solid #dbe3e6;">-- | <pre style="white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7;padding:12px;background:#f5f7f8;border:1px solid #dbe3e6;">-- PS_ShopList/PS_ShopList.lua | ||
-- | -- MessageBox_Self/MessageBox_Self.lua | ||
-- | -- PS_ShopList/PS_ShopList.lua | ||
-- | -- PS_Shop/PS_Shop.lua</pre> | ||
</div> | </div> | ||
2026年9月19日 (六) 08:48的版本
首页 · 客户端接口 · PlayerShop · 窗口操作 · 客户端事件
PlayerShop 对象方法
实现类
PlayerShop · 87 个方法本页信息由客户端 C++ 绑定源码与 230 个界面脚本自动整理:参数取实现体的
args[n] 取值点(对象方法已扣除 self 占用的栈位),调用示例取脚本中的真实调用,未经运行验证;用途摘要按实现体归纳,仅供参考。调用方式
对象方法以 PlayerShop:方法名(参数) 形式调用,例如 PlayerShop:GetCommercialFactor()。各方法的参数见下表,点方法名进入独立页。
对象名 PlayerShop 是全局对象,可直接使用。
方法列表
| 方法 | 说明 |
|---|---|
PlayerShop:AddFavor(number)无返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:ApplyMoney(string, number)无返回值 |
触发客户端事件 GE_OPEN_PS_MESSAGE_FRAME、GE_NEW_DEBUGMESSAGE;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:AskOpenShop(string, number)无返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:AskStallData(string, number)无返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:BuyItem(string)无返回值 |
触发客户端事件 GE_NEW_DEBUGMESSAGE;操作客户端界面;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:BuyShop()无返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:CancelRecItem(number, number)无返回值 |
触发客户端事件 GE_RECYCLE_DEL_ITEM;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:CancelSellItem2RecycleShop(number)无返回值 |
触发客户端事件 GE_PACKAGE_ITEM_CHANGED;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:ChangeShopNum(string)无返回值 |
触发客户端事件 GE_OPEN_PS_MESSAGE_FRAME;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:ClearSelect(string)无返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:ClearSelectPos(string)无返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:CloseChangeTypeMsgBox()无返回值 |
触发客户端事件 GE_CLOSE_PS_CHANGETYPE_MSG;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:CloseRecycleShop()无返回值 |
触发客户端事件 GE_CLOSE_RECYCLESHOP_MSG;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:CloseSearchFrame()无返回值 |
触发客户端事件 GE_PS_CLOSE_FIND_SHOP;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:CloseShop(string)无返回值 |
触发客户端事件 GE_CLOSE_PET_LIST;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:CloseShopMag()无返回值 |
触发客户端事件 GE_PS_CLOSE_SHOP_MAG;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:CreateShop(string, number)无返回值 |
触发客户端事件 GE_NEW_DEBUGMESSAGE、GE_GAMELOGIN_SHOW_SYSTEM_INFO、GE_PS_CLOSE_CREATESHOP;操作客户端界面;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:DealFriend(string, string)无返回值 |
触发客户端事件 GE_NEW_DEBUGMESSAGE;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:DealMoney(string, number)2 个返回值 |
触发客户端事件 GE_NEW_DEBUGMESSAGE;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:DownSale(string)无返回值 |
触发客户端事件 GE_NEW_DEBUGMESSAGE;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:EnumFriend(number)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:EnumItem(number, number, string)2 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:EnumMessage(string, number)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:EnumPet(string, number, number)2 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:EnumRecycleItem(number)4 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:EnumRecycleItemAction(number, number)2 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:EnumRecycleItemClass(number)1 个返回值 |
实现体未体现明确的外部效果 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:EnumRecycleItemType(number)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:EnumSearchShopIndex(number)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:EnumShop(number)7 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:EnumShopInfo(string, number)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:FindShop(string, number)无返回值 |
触发客户端事件 GE_PS_UPDATE_SEARCH_RECYCLESHOPLIST、GE_PS_UPDATE_SEARCH_SHOPLIST;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetCanOpenShopType()1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetCommercialFactor()1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetCurPageMessageNum(string)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetCurSelectPage(string)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetCurShopType(string)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetFriendNum()1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetMessageNum(string)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetMessageType()1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetMoney(string, string)4 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetNpcId()1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetObjName(string, string)2 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetObjPrice(string, string)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetRecycleItem(number, number, string)1 个返回值 |
实现体未体现明确的外部效果 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetRecycleItemClassCount()1 个返回值 |
实现体未体现明确的外部效果 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetRecycleItemCount(number, number)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetRecycleItemTypeCount(number)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetRecycleShopName(number)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetRecycleShopOwnerID(number)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetRecycleShopOwnerName(number)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetRecycleShopProfitMoney(number)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetSelectIndex(string)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetSelfPlace()1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetShopInfo(string, string)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetShopListType()1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetShopNum(string)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:GetStallNum(string)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:InfoMoney()无返回值 |
实现体未体现明确的外部效果 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:InputMoney(string)无返回值 |
触发客户端事件 GE_NEW_DEBUGMESSAGE、GE_TOGLE_INPUT_MONEY、GE_PS_INPUT_MONEY;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:IsOpenStall(string, number)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:IsSaleOut(string)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:IsSelectOnSale(string, number)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:Modify(string, string)无返回值 |
触发客户端事件 GE_GAMELOGIN_SHOW_SYSTEM_INFO、GE_NEW_DEBUGMESSAGE、GE_OPEN_PS_MESSAGE_FRAME;操作客户端界面;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:ModifySubType(string, number)无返回值 |
触发客户端事件 GE_OPEN_PS_MESSAGE_FRAME、GE_NEW_DEBUGMESSAGE;操作客户端界面;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:OpenADDlg(number)无返回值 |
触发客户端事件 GE_RECYCLE_AD_SET;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:OpenFindShop()无返回值 |
触发客户端事件 GE_OPEN_FIND_SHOP;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:OpenMessage(string, number)无返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:OpenRecycleShopDLG(string)无返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:OpenRecycleShopDLG2(number, string)无返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:OpenSelectRecycleItemDLG(number)无返回值 |
触发客户端事件 GE_OPEN_SELECTRECYCLEITEM_DLG;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:OpenStall(number, number)无返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:RecycleShop_EnterSell()无返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:RecycleShop_GetShopDesc(number)1 个返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:RetackItem(string)无返回值 |
触发客户端事件 GE_NEW_DEBUGMESSAGE;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:SendAddRecycleItemMsg(number, number, number, number)无返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:SendCancelRecItemMsg(number, number)无返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:SendSellItem2RecycleShopMsg(number, number)无返回值 |
触发客户端事件 GE_PACKAGE_ITEM_CHANGED;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:SendSetRecycleShopADMsg(number, string)无返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:SendTakeRecItemMsg(number, number)无返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:SetCurSelectPage(string, number)无返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:SetCurSelectPetIndex(string, number, number)无返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:SetCurSelShopIdx(number)无返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:SetSelectPet(number)无返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:Transfer(string, number)无返回值 |
触发客户端事件 GE_TOGLE_INPUT_MONEY;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:UpStall(string, number)无返回值 |
触发客户端事件 GE_NEW_DEBUGMESSAGE;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
PlayerShop:ViewPetDesc(string, number)无返回值 |
触发客户端事件 GE_VIEW_EXCHANGE_PET;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp |
多返回值方法
PlayerShop:DealMoney→ 2 个返回值PlayerShop:EnumItem→ 2 个返回值PlayerShop:EnumPet→ 2 个返回值PlayerShop:EnumRecycleItem→ 4 个返回值PlayerShop:EnumRecycleItemAction→ 2 个返回值PlayerShop:EnumShop→ 7 个返回值PlayerShop:GetMoney→ 4 个返回值PlayerShop:GetObjName→ 2 个返回值
脚本中的调用
以下是该对象在客户端界面脚本里的调用点(整理为注释,便于检索):
-- PS_ShopList/PS_ShopList.lua -- MessageBox_Self/MessageBox_Self.lua -- PS_ShopList/PS_ShopList.lua -- PS_Shop/PS_Shop.lua