Skip to content

Commit

Permalink
use ant.imgui package
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Jan 18, 2024
1 parent f775c00 commit ef5a23c
Show file tree
Hide file tree
Showing 28 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion test/features/pkg/ant.test.features/imgui_system.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local ecs = ...
local world = ecs.world
local w = world.w

local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local common = ecs.require "common"

local m = ecs.system "imgui_system"
Expand Down
2 changes: 1 addition & 1 deletion test/imgui/pkg/imgui/init_system.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local ecs = ...
local world = ecs.world
local w = world.w

local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"

local m = ecs.system 'init_system'

Expand Down
2 changes: 1 addition & 1 deletion test/simple/pkg/ant.test.simple/main_system.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local ecs = ...
local world = ecs.world
local w = world.w

local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local ivs = ecs.require "ant.render|visible_state"
local ianimation = ecs.require "ant.animation|animation"
local iplayback = ecs.require "ant.animation|playback"
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/editor/callback.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local task = require "editor.task"
local event = require "editor.event"
local worlds = require "editor.worlds"
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/gui_system.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local world = ecs.world
local w = world.w

local math3d = require "math3d"
local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local rhwi = import_package "ant.hwi"
local mathpkg = import_package "ant.math"
local faicons = require "common.fa_icons"
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/prefab_manager.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local ecs = ...
local world = ecs.world
local w = world.w
local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local assetmgr = import_package "ant.asset"
local serialize = import_package "ant.serialize"
local mathpkg = import_package "ant.math"
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/widget/animation_view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ local prefab_mgr = ecs.require "prefab_manager"
local assetmgr = import_package "ant.asset"
local icons = require "common.icons"
local logger = require "widget.log"
local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local imguiWidgets = require "imgui.widgets"
local hierarchy = require "hierarchy_edit"
local uiconfig = require "widget.config"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local ecs = ...
local world = ecs.world
local w = world.w

local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local math3d = require "math3d"

local icamera = ecs.require "ant.camera|camera"
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/widget/camera_view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local uiproperty = require "widget.uiproperty"
local uiutils = require "widget.utils"
local hierarchy = require "hierarchy_edit"
local math3d = require "math3d"
local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"

local serialize = import_package "ant.serialize"

Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/widget/collider_view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local w = world.w
local iom = ecs.require "ant.objcontroller|obj_motion"
local imaterial = ecs.require "ant.asset|material"
local anim_view = ecs.require "widget.animation_view"
local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local math3d = require "math3d"
local uiproperty = require "widget.uiproperty"
local hierarchy = require "hierarchy_edit"
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/widget/component_ui.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"

local compdefines=require "widget.component_defines"

Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/widget/console.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local uiconfig = require "widget.config"
local utils = require "common.utils"
local cthread = require "bee.thread"
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/widget/effect_view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local ecs = ...
local world = ecs.world
local w = world.w
local iefk = ecs.require "ant.efk|efk"
local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local uiproperty = require "widget.uiproperty"
local hierarchy = require "hierarchy_edit"
local EffectView = {}
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/widget/gridmesh_view.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local ecs = ...
local world = ecs.world
local w = world.w
local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local uiconfig = require "widget.config"
local uiutils = require "widget.utils"
local brush_def = require "brush_def"
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/widget/inspector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local world = ecs.world
local w = world.w

local gizmo = ecs.require "gizmo.gizmo"
local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local uiconfig = require "widget.config"

local base_panel = ecs.require "widget.base_view"()
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/widget/joint_utils.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"

local m = {
show_skeleton = false,
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/widget/keyframe_view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local iani = ecs.require "ant.anim_ctrl|state_machine"
local iom = ecs.require "ant.objcontroller|obj_motion"
local assetmgr = import_package "ant.asset"
local aio = import_package "ant.io"
local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local imguiWidgets = require "imgui.widgets"
local uiconfig = require "widget.config"
local uiutils = require "widget.utils"
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/widget/log.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local uiconfig = require "widget.config"
local utils = require "common.utils"
local cthread = require "bee.thread"
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/widget/main_view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ local mu = mathpkg.util

local uiconfig = require "widget.config"
local icons = require "common.icons"
local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local irq = ecs.require "ant.render|render_system.renderqueue"
local iviewport = ecs.require "ant.render|viewport.state"

Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/widget/material_editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local ecs = ...
local world = ecs.world
local w = world.w

local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"

local md = {} md.__index = md

Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/widget/menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local camerasetting_view= ecs.require "widget.camera_setting_view"
local rhwi = import_package "ant.hwi"
local editor_setting = require "editor_setting"

local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local lfs = require "bee.filesystem"
local global_data = require "common.global_data"
local access = global_data.repo_access
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local global_data = require "common.global_data"
local datalist = require "datalist"
local serialize = import_package "ant.serialize"
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/widget/resource_browser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local ecs = ...
local world = ecs.world
local assetmgr = import_package "ant.asset"

local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local lfs = require "bee.filesystem"
local fs = require "filesystem"
local uiconfig = require "widget.config"
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/widget/scene_view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local assetmgr = import_package "ant.asset"
local icons = require "common.icons"
local gizmo = ecs.require "gizmo.gizmo"
local ivs = ecs.require "ant.render|visible_state"
local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local uiconfig = require "widget.config"
local hierarchy = require "hierarchy_edit"
local faicons = require "common.fa_icons"
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/widget/slot_view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local ecs = ...
local world = ecs.world
local w = world.w

local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local joint_utils = require "widget.joint_utils"
local uiproperty = require "widget.uiproperty"
local hierarchy = require "hierarchy_edit"
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/widget/toolbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local ecs = ...
local world = ecs.world
local w = world.w

local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local uiconfig = require "widget.config"
local uiutils = require "widget.utils"
local gizmo = ecs.require "gizmo.gizmo"
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/widget/uiproperty.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local imguiWidgets = require "imgui.widgets"
local assetmgr = import_package "ant.asset"
local aio = import_package "ant.io"
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/pkg/tools.editor/widget/utils.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local assetmgr = import_package "ant.asset"
local ImGui = require "imgui"
local ImGui = import_package "ant.imgui"
local faicons = require "common.fa_icons"
local icons = require "common.icons"
local m = {}
Expand Down

0 comments on commit ef5a23c

Please sign in to comment.