Skip to content

Commit

Permalink
Update REAME: fix some little things
Browse files Browse the repository at this point in the history
  • Loading branch information
PGZXB committed Jul 24, 2024
1 parent e7edbc6 commit 1a978f2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ This project provides Cangjie programming language bindings for [Dear ImGui](htt
* Install CMake, GCC/CLANG/MSVC
* Ensure you have `cjpm` installed

2. Build imgui4cj
2. Build `imgui4cj`
```shell
git clone https://github.com/PGZXB/imgui4cj
cd imgui4cj
./build_imgui4cj_c_lib.sh # use ".\build_imgui4cj_c_lib.ps1" on Windows
cjpm build -V
```

3. Add package dependency to your cjpm.toml
3. Add package dependency to your `cjpm.toml`
```toml
[dependencies]
imgui4cj = { path = "/path/to/imgui4cj", version = "0.1.0"}

...
# ...
```

#### Option 2. Download package from releases
Expand All @@ -42,12 +42,12 @@ This project provides Cangjie programming language bindings for [Dear ImGui](htt
[dependencies]
imgui4cj = { path = "/path/to/imgui4cj", version = "0.1.0"}

...
# ...
```

### Run "Hello, world!"

Here is a simple example of how to create a basic window with a button and sliders:
Here is a simple example of how to create a basic window with some basic widgets:

```cangjie
from imgui4cj import wcapi.*
Expand Down

0 comments on commit 1a978f2

Please sign in to comment.