sets screen position to the node * * Set the screen position to the supplied node * * @name gui.set_screen_position * @param node [type:node] node to set the screen position to * @param screen_position [type:vector3] screen position */
| 4506 | * @param screen_position [type:vector3] screen position |
| 4507 | */ |
| 4508 | int LuaSetScreenPosition(lua_State* L) |
| 4509 | { |
| 4510 | DM_LUA_STACK_CHECK(L, 0); |
| 4511 | Scene* scene = GuiScriptInstance_Check(L); |
| 4512 | InternalNode* node = LuaCheckNodeInternal(L, 1, 0); |
| 4513 | Point3 screen_position = GetPositionFromArgumentIndex(L, 2); |
| 4514 | SetScreenPosition(scene, GetNodeHandle(node), screen_position); |
| 4515 | return 0; |
| 4516 | } |
| 4517 | |
| 4518 | /*# convert screen position to the local node position |
| 4519 | * |
nothing calls this directly
no test coverage detected