update 1.63
parent
d70e6c1474
commit
e76412614f
|
|
@ -1,6 +1,4 @@
|
|||
|
||||
|
||||
# sd-webui-oldsix_prompt v1.60
|
||||
# sd-webui-oldsix_prompt v1.63
|
||||
### 老版词库 @路过银河&网上收集
|
||||
### 新词库由群里小伙伴 @麻瓜 @万碎爷 @元一斤 整理
|
||||
### 100%完全自制插件,不是魔改别人,最近有个别up未均本人允许,在多个平台打着nsfw词库的旗号拿本插件吸粉入群,别人安装插件出问题又无法提供解决方案 ###
|
||||
|
|
@ -28,6 +26,7 @@
|
|||
* 左键输入正向提示框、 右键输入负向提示框
|
||||
* 支持自定义词库
|
||||
* 支持随机抽卡 【灵感模式、分类随机模式】
|
||||
* 支持翻译、权重调整、位置调整。Alt键呼出隐藏面板
|
||||
* 支持动态随机提示词 本插件专属语法示例:#[red#blue#yellow] 或#[日常服饰]、 #[红色类#黄色类]
|
||||
---
|
||||
##### 展示1
|
||||
|
|
|
|||
|
|
@ -403,28 +403,32 @@ function move(){
|
|||
else{
|
||||
Elements.imgul=ul
|
||||
}
|
||||
// item.onmousedown = function(event) {
|
||||
// // 获取div当前的x和y坐标
|
||||
// var x = event.clientX - item.offsetLeft;
|
||||
// var y = event.clientY - item.offsetTop;
|
||||
// item.style.cursor = 'grabbing';
|
||||
// document.onmousemove = function(event) {
|
||||
// // 获取鼠标当前的位置
|
||||
// var newX = event.clientX - x;
|
||||
// var newY = event.clientY - y;
|
||||
item.onmousedown = function(event) {
|
||||
|
||||
let istriggel=event.target.classList.contains("old-six-traninput");
|
||||
if(!istriggel)return
|
||||
|
||||
// 获取div当前的x和y坐标
|
||||
var x = event.clientX - item.offsetLeft;
|
||||
var y = event.clientY - item.offsetTop;
|
||||
item.style.cursor = 'grabbing';
|
||||
document.onmousemove = function(event) {
|
||||
// 获取鼠标当前的位置
|
||||
var newX = event.clientX - x;
|
||||
var newY = event.clientY - y;
|
||||
|
||||
// // 设置div的新位置
|
||||
// item.style.left = newX + 'px';
|
||||
// item.style.top = newY + 'px';
|
||||
// };
|
||||
// 设置div的新位置
|
||||
item.style.left = newX + 'px';
|
||||
item.style.top = newY + 'px';
|
||||
};
|
||||
|
||||
// document.onmouseup = function() {
|
||||
// // 当鼠标松开时,移除mousemove和mouseup事件,以防止继续拖动
|
||||
// item.style.cursor = 'grab';
|
||||
// document.onmousemove = null;
|
||||
// document.onmouseup = null;
|
||||
// };
|
||||
// };
|
||||
document.onmouseup = function() {
|
||||
// 当鼠标松开时,移除mousemove和mouseup事件,以防止继续拖动
|
||||
item.style.cursor = 'grab';
|
||||
document.onmousemove = null;
|
||||
document.onmouseup = null;
|
||||
};
|
||||
};
|
||||
})
|
||||
getEle("#tab_txt2img").appendChild(Elements.trans[0])
|
||||
getEle("#tab_img2img").appendChild(Elements.trans[1])
|
||||
|
|
|
|||
|
|
@ -113,11 +113,11 @@ class Script(scripts.Script):
|
|||
eid='oldsix-prompt1'
|
||||
tid='oldsix-area1'
|
||||
with gr.Row(elem_id=eid):
|
||||
with gr.Accordion(label="SixGod_K提示词 v1.60",open=False):
|
||||
with gr.Accordion(label="SixGod_K提示词 v1.63",open=False):
|
||||
gr.HTML('<a href="https://github.com/thisjam/sd-webui-oldsix-prompt/">【使用说明书】</a>')
|
||||
|
||||
textarea=gr.TextArea(self.json,elem_id=tid,visible=False)
|
||||
traninput=gr.Textbox(elem_classes="old-six-traninput six-hide",show_label="",placeholder="输入中文后按回车翻译")
|
||||
traninput=gr.Textbox(elem_classes="old-six-traninput",show_label="",placeholder="输入中文后按回车翻译,[ALT]键呼出/隐藏")
|
||||
tcache=gr.Textbox(elem_classes="old-six-tcache",visible=False)
|
||||
|
||||
with gr.Column(scale=4,elem_id="oldsix-optit"):
|
||||
|
|
|
|||
Loading…
Reference in New Issue